NetBSD/lib/libc/arch/mips/gen/fpgetmask.c

18 lines
253 B
C
Raw Normal View History

/* $NetBSD: fpgetmask.c,v 1.2 1996/09/16 18:10:43 jonathan Exp $ */
/*
* Written by J.T. Conklin, Apr 11, 1995
* Public domain.
*/
#include <ieeefp.h>
fp_except
fpgetmask()
{
int x;
__asm__("cfc1 %0,$31" : "=r" (x));
return (x >> 7) & 0x1f;
}