fpsetmask.S revision 1.3
1/* $NetBSD: fpsetmask.S,v 1.3 1998/01/09 03:45:05 perry Exp $ */ 2 3/* 4 * Written by Charles M. Hannum, Apr 9, 1995 5 * Public domain. 6 */ 7 8#include <machine/asm.h> 9 10ENTRY(fpsetmask) 11 subl $4,%esp 12 13 fnstcw (%esp) 14 movl (%esp),%eax 15 movl %eax,%edx 16 17 notl %eax 18 andl $63,%eax 19 20 addl %eax,%edx 21 movl 8(%esp),%ecx 22 andl $63,%ecx 23 subl %ecx,%edx 24 movl %edx,(%esp) 25 fldcw (%esp) 26 27 addl $4,%esp 28 ret 29