1998-01-09 06:15:09 +03:00
|
|
|
/* $NetBSD: fpgetmask.c,v 1.2 1998/01/09 03:15:14 perry Exp $ */
|
|
|
|
|
1995-04-11 01:09:06 +04:00
|
|
|
/*
|
|
|
|
* 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;
|
|
|
|
}
|