xref: /netbsd-src/lib/libc/arch/i386/gen/fpgetmask.S (revision 95d875fb90b1458e4f1de6950286ddcd6644bc61)
1/*	$NetBSD: fpgetmask.S,v 1.3 1998/01/09 03:45:03 perry Exp $	*/
2
3/*
4 * Written by J.T. Conklin, Apr 4, 1995
5 * Public domain.
6 */
7
8#include <machine/asm.h>
9
10ENTRY(fpgetmask)
11	subl $4,%esp
12	fnstcw (%esp)
13	movl (%esp),%eax
14	notl %eax
15	andl $63,%eax
16	addl $4,%esp
17	ret
18