Home | History | Annotate | Line # | Download | only in gen
fpsetsticky.S revision 1.5
      1 /*	$NetBSD: fpsetsticky.S,v 1.5 1998/01/09 03:45:06 perry Exp $	*/
      2 
      3 /*
      4  * Written by Charles M. Hannum, Apr 9, 1995
      5  * Public domain.
      6  */
      7 
      8 #include <machine/asm.h>
      9 
     10 ENTRY(fpsetsticky)
     11 	subl $28,%esp
     12 
     13 	fnstenv (%esp)
     14 	movl 4(%esp),%eax
     15 	movl %eax,%edx
     16 
     17 	andl $63,%eax
     18 
     19 	subl %eax,%edx
     20 	movl 32(%esp),%ecx
     21 	andl $63,%ecx
     22 	addl %ecx,%edx
     23 	movl %edx,4(%esp)
     24 	fldenv (%esp)
     25 
     26 	addl $28,%esp
     27 	ret
     28