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