summaryrefslogtreecommitdiffstats
path: root/lib/libc/sparc64
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2008-01-18 21:25:51 +0000
committerdas <das@FreeBSD.org>2008-01-18 21:25:51 +0000
commit764b848f5d99ac0e820c624c88232a2c6378a17d (patch)
tree4aafc45b756710fb1dba28da1024a0b05077bf2c /lib/libc/sparc64
parentdd27822e35aeb942efa8c765f478a6837f97c1d5 (diff)
downloadFreeBSD-src-764b848f5d99ac0e820c624c88232a2c6378a17d.zip
FreeBSD-src-764b848f5d99ac0e820c624c88232a2c6378a17d.tar.gz
Add a new union member to access the exponent and sign of a long double
in a single op. Idea from bde.
Diffstat (limited to 'lib/libc/sparc64')
-rw-r--r--lib/libc/sparc64/_fpmath.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libc/sparc64/_fpmath.h b/lib/libc/sparc64/_fpmath.h
index e5f2238..f323815 100644
--- a/lib/libc/sparc64/_fpmath.h
+++ b/lib/libc/sparc64/_fpmath.h
@@ -35,6 +35,11 @@ union IEEEl2bits {
unsigned long manh :48;
unsigned long manl :64;
} bits;
+ struct {
+ unsigned int expsign :16;
+ unsigned long manh :48;
+ unsigned long manl :64;
+ } xbits;
};
#define mask_nbit_l(u) ((void)0)
OpenPOWER on IntegriCloud