revert between 56095 -> 55830 in arch
[AROS.git] / compiler / stdc / math / m68k / _fpmath.h
blob687d9b8ea202a6833f5580582f6606c7fcf7da01
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 IEEE floating point layout; m68k version
6 */
8 union IEEEl2bits {
9 long double e;
10 struct {
11 unsigned int sign :1;
12 unsigned int exp :15;
13 unsigned int zero :16;
14 unsigned int manh :32;
15 unsigned int manl :32;
16 } bits;
17 struct {
18 unsigned int expsign :16;
19 unsigned int junk :16;
20 unsigned long long man :64;
21 } xbits;
24 #define LDBL_NBIT 0x80000000
25 #define mask_nbit_l(u) ((u).bits.manh &= ~LDBL_NBIT)
27 #define LDBL_MANH_SIZE 32
28 #define LDBL_MANL_SIZE 32
30 #define LDBL_TO_ARRAY32(u, a) do { \
31 (a)[0] = (uint32_t)(u).bits.manl; \
32 (a)[1] = (uint32_t)(u).bits.manh; \
33 } while(0)