Tabs to spaces, more consistent formatting, childs -> children, typos in
[AROS.git] / compiler / mlib / m68k / _fpmath.h
blob418e9511c4676a0ece9f10578297cb7f656acda5
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;
19 #define LDBL_NBIT 0x80000000
20 #define mask_nbit_l(u) ((u).bits.manh &= ~LDBL_NBIT)
22 #define LDBL_MANH_SIZE 32
23 #define LDBL_MANL_SIZE 32
25 #define LDBL_TO_ARRAY32(u, a) do { \
26 (a)[0] = (uint32_t)(u).bits.manl; \
27 (a)[1] = (uint32_t)(u).bits.manh; \
28 } while(0)