NetBSD/lib/libc/arch/sparc64/gen/fpgetmask.c
1998-09-11 04:56:19 +00:00

18 lines
251 B
C

/* $NetBSD: fpgetmask.c,v 1.1 1998/09/11 04:56:23 eeh Exp $ */
/*
* Written by J.T. Conklin, Apr 10, 1995
* Public domain.
*/
#include <ieeefp.h>
fp_except
fpgetmask()
{
int x;
__asm__("st %%fsr,%0" : "=m" (*&x));
return (x >> 23) & 0x1f;
}