fpsetmask.S revision 1.1
11.1Smycroft/* 21.1Smycroft * Written by Charles M. Hannum, Apr 9, 1995 31.1Smycroft * Public domain. 41.1Smycroft */ 51.1Smycroft 61.1Smycroft#include <machine/asm.h> 71.1Smycroft 81.1SmycroftENTRY(fpsetmask) 91.1Smycroft subl $4,%esp 101.1Smycroft 111.1Smycroft fnstcw (%esp) 121.1Smycroft movl (%esp),%eax 131.1Smycroft movl %eax,%edx 141.1Smycroft 151.1Smycroft notl %eax 161.1Smycroft andl $63,%eax 171.1Smycroft 181.1Smycroft orl %eax,%edx 191.1Smycroft movl 8(%esp),%ecx 201.1Smycroft andl $63,%ecx 211.1Smycroft subl %ecx,%edx 221.1Smycroft movl %edx,(%esp) 231.1Smycroft fldcw (%esp) 241.1Smycroft 251.1Smycroft addl $4,%esp 261.1Smycroft ret 27