1 /* $NetBSD: fpgetround.S,v 1.1 2001/06/19 00:25:02 fvdl Exp $ */ 2 3 /* 4 * Written by J.T. Conklin, Apr 4, 1995 5 * Public domain. 6 */ 7 8 #include <machine/asm.h> 9 10 ENTRY(fpgetround) 11 fnstcw -4(%rsp) 12 movl -4(%rsp),%eax 13 rorl $10,%eax 14 andl $3,%eax 15 ret 16