Home | History | Annotate | Line # | Download | only in gen
fpsetsticky.S revision 1.3
      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 $28,%esp
     10 
     11 	fnstenv (%esp)
     12 	movl 4(%esp),%eax
     13 	movl %eax,%edx
     14 
     15 	notl %eax
     16 	andl $63,%eax
     17 
     18 	orl %eax,%edx
     19 	movl 32(%esp),%ecx
     20 	andl $63,%ecx
     21 	subl %ecx,%edx
     22 	movl %edx,4(%esp)
     23 	fldenv (%esp)
     24 
     25 	addl $28,%esp
     26 	ret
     27