]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - lib/libc/sparc64/gen/fpgetmask.c
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.git] / lib / libc / sparc64 / gen / fpgetmask.c
1 /*      $NetBSD: fpgetmask.c,v 1.2 2002/01/13 21:45:50 thorpej Exp $    */
2
3 /*
4  * Written by J.T. Conklin, Apr 10, 1995
5  * Public domain.
6  */
7
8 #include <sys/cdefs.h>
9 __FBSDID("$FreeBSD$");
10
11
12 #include <machine/fsr.h>
13 #include <ieeefp.h>
14
15 fp_except_t
16 fpgetmask()
17 {
18         unsigned int x;
19
20         __asm__("st %%fsr,%0" : "=m" (x));
21         return (FSR_GET_TEM(x));
22 }