revert between 56095 -> 55830 in arch
[AROS.git] / compiler / stdc / math / infinity.c
blob3d2dc2efa672bf33d18cf1654adb97bb076535f1
1 /*
2 Copyright © 2002, The AROS Development Team. All rights reserved.
3 $Id$
5 Definition of infinity and NaN.
6 */
8 /* These definitions are used if no architecture-specific version of this file
9 * is available or needed. They assume we're dealing with IEEE 754 floating
10 * point.
13 #include <aros/system.h>
14 #include <math.h>
16 #if AROS_BIG_ENDIAN
17 const union __infinity_un __infinity = { { 0x7f, 0xf0, 0, 0, 0, 0, 0, 0 } };
18 #else
19 const union __infinity_un __infinity = { {0, 0, 0, 0, 0, 0, 0xf0, 0x7f} };
20 #endif
22 #if AROS_BIG_ENDIAN
23 const union __nan_un __nan = { { 0xff, 0xc0, 0, 0 } };
24 #else
25 const union __nan_un __nan = { { 0, 0, 0xc0, 0xff } };
26 #endif