xref: /openbsd/lib/libc/arch/i386/gen/fpgetmask.S (revision 3cab2bb3)
1/* $OpenBSD: fpgetmask.S,v 1.3 2005/08/07 11:30:38 espie Exp $ */
2/*
3 * Written by J.T. Conklin, Apr 4, 1995
4 * Public domain.
5 */
6
7#include <machine/asm.h>
8
9ENTRY(fpgetmask)
10	subl $4,%esp
11	fnstcw (%esp)
12	movl (%esp),%eax
13	notl %eax
14	andl $63,%eax
15	addl $4,%esp
16	ret
17