1 1.4 perry /* $NetBSD: fpgetround.S,v 1.4 1998/01/09 03:45:04 perry Exp $ */ 2 1.4 perry 3 1.1 jtc /* 4 1.1 jtc * Written by J.T. Conklin, Apr 4, 1995 5 1.1 jtc * Public domain. 6 1.1 jtc */ 7 1.1 jtc 8 1.1 jtc #include <machine/asm.h> 9 1.1 jtc 10 1.1 jtc ENTRY(fpgetround) 11 1.1 jtc subl $4,%esp 12 1.1 jtc fnstcw (%esp) 13 1.2 mycroft movl (%esp),%eax 14 1.3 mycroft rorl $10,%eax 15 1.1 jtc andl $3,%eax 16 1.1 jtc addl $4,%esp 17 1.1 jtc ret 18