]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - lib/libc/sparc64/gen/fpgetsticky.c
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / lib / libc / sparc64 / gen / fpgetsticky.c
1 /*      $NetBSD: fpgetsticky.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 #include <machine/fsr.h>
12 #include <ieeefp.h>
13
14 fp_except_t
15 fpgetsticky()
16 {
17         unsigned int x;
18
19         __asm__("st %%fsr,%0" : "=m" (x));
20         return (FSR_GET_AEXC(x));
21 }