From b3b2ea5930771b28b737890b25e4bccf6e67158d Mon Sep 17 00:00:00 2001 From: David Schultz Date: Fri, 18 Jan 2008 21:25:51 +0000 Subject: [PATCH] Add a new union member to access the exponent and sign of a long double in a single op. Idea from bde. --- lib/libc/sparc64/_fpmath.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/libc/sparc64/_fpmath.h b/lib/libc/sparc64/_fpmath.h index e5f2238ac8d..f3238150ad8 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)