fpsetsticky.S revision 1.1
1/* 2 * Written by Charles M. Hannum, Apr 9, 1995 3 * Public domain. 4 */ 5 6#include <machine/asm.h> 7 8ENTRY(fpsetsticky) 9 subl $28,%esp 10 11 fnstenv (%esp) 12 movl 4(%esp),%eax 13 movl %eax,%edx 14 15 andl $63,%eax 16 17 subl %eax,%edx 18 movl 32(%esp),%ecx 19 andl $63,%ecx 20 addl %ecx,%edx 21 movl %edx,4(%esp) 22 fldenv (%esp) 23 24 addl $28,%esp 25 ret 26