2000-02-18 03:39:52 +08:00
|
|
|
#ifndef __IEEE_BIG_ENDIAN
|
|
|
|
#ifndef __IEEE_LITTLE_ENDIAN
|
|
|
|
|
2001-04-04 21:33:01 +08:00
|
|
|
/* This file can define macros to choose variations of the IEEE float
|
|
|
|
format:
|
|
|
|
|
|
|
|
_FLT_LARGEST_EXPONENT_IS_NORMAL
|
|
|
|
|
|
|
|
Defined if the float format uses the largest exponent for finite
|
|
|
|
numbers rather than NaN and infinity representations. Such a
|
|
|
|
format cannot represent NaNs or infinities at all, but it's FLT_MAX
|
|
|
|
is twice the IEEE value.
|
|
|
|
|
|
|
|
_FLT_NO_DENORMALS
|
|
|
|
|
|
|
|
Defined if the float format does not support IEEE denormals. Every
|
|
|
|
float with a zero exponent is taken to be a zero representation.
|
|
|
|
|
|
|
|
??? At the moment, there are no equivalent macros for doubles and
|
|
|
|
the macros are not fully supported by --enable-newlib-hw-fp. */
|
|
|
|
|
2000-02-18 03:39:52 +08:00
|
|
|
#if defined(__arm__) || defined(__thumb__)
|
|
|
|
/* ARM always has big-endian words. Within those words the byte ordering
|
2001-06-28 18:40:09 +08:00
|
|
|
will be big or little endian depending upon the target. */
|
2000-02-18 03:39:52 +08:00
|
|
|
#define __IEEE_BIG_ENDIAN
|
2001-06-28 18:40:09 +08:00
|
|
|
#ifdef __ARMEL__
|
|
|
|
#define __IEEE_BYTES_LITTLE_ENDIAN
|
|
|
|
#endif
|
2000-02-18 03:39:52 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __hppa__
|
|
|
|
#define __IEEE_BIG_ENDIAN
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __sparc__
|
|
|
|
#ifdef __LITTLE_ENDIAN_DATA__
|
|
|
|
#define __IEEE_LITTLE_ENDIAN
|
|
|
|
#else
|
|
|
|
#define __IEEE_BIG_ENDIAN
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(__m68k__) || defined(__mc68000__)
|
|
|
|
#define __IEEE_BIG_ENDIAN
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined (__H8300__) || defined (__H8300H__) || defined (__H8300S__)
|
|
|
|
#define __IEEE_BIG_ENDIAN
|
|
|
|
#define __SMALL_BITFIELDS
|
|
|
|
#define _DOUBLE_IS_32BITS
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __H8500__
|
|
|
|
#define __IEEE_BIG_ENDIAN
|
|
|
|
#define __SMALL_BITFIELDS
|
|
|
|
#define _DOUBLE_IS_32BITS
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __sh__
|
|
|
|
#ifdef __LITTLE_ENDIAN__
|
|
|
|
#define __IEEE_LITTLE_ENDIAN
|
|
|
|
#else
|
|
|
|
#define __IEEE_BIG_ENDIAN
|
|
|
|
#endif
|
|
|
|
#if defined(__SH3E__) || defined(__SH4_SINGLE_ONLY__)
|
|
|
|
#define _DOUBLE_IS_32BITS
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef _AM29K
|
|
|
|
#define __IEEE_BIG_ENDIAN
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
#define __IEEE_LITTLE_ENDIAN
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __i386__
|
|
|
|
#define __IEEE_LITTLE_ENDIAN
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __i960__
|
|
|
|
#define __IEEE_LITTLE_ENDIAN
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __M32R__
|
|
|
|
#define __IEEE_BIG_ENDIAN
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __TIC80__
|
|
|
|
#define __IEEE_LITTLE_ENDIAN
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __MIPSEL__
|
|
|
|
#define __IEEE_LITTLE_ENDIAN
|
|
|
|
#endif
|
|
|
|
#ifdef __MIPSEB__
|
|
|
|
#define __IEEE_BIG_ENDIAN
|
|
|
|
#endif
|
|
|
|
|
2001-11-12 Hans-Peter Nilsson <hp@bitrange.com>
* libc/include/machine/ieeefp.h: Add support for mmix target.
* libc/include/machine/setjmp.h: Ditto.
* configure.host: Ditto.
* libc/sys/mmixware/Makefile.am, libc/sys/mmixware/_exit.c,
libc/sys/mmixware/access.c, libc/sys/mmixware/aclocal.m4,
libc/sys/mmixware/chmod.c, libc/sys/mmixware/chown.c,
libc/sys/mmixware/close.c, libc/sys/mmixware/configure.in,
libc/sys/mmixware/creat.c, libc/sys/mmixware/crt0.c,
libc/sys/mmixware/execv.c, libc/sys/mmixware/execve.c,
libc/sys/mmixware/fork.c, libc/sys/mmixware/fstat.c,
libc/sys/mmixware/getpid.c, libc/sys/mmixware/gettime.c,
libc/sys/mmixware/isatty.c, libc/sys/mmixware/kill.c,
libc/sys/mmixware/lseek.c, libc/sys/mmixware/open.c,
libc/sys/mmixware/pipe.c, libc/sys/mmixware/read.c,
libc/sys/mmixware/sbrk.c, libc/sys/mmixware/setjmp.S,
libc/sys/mmixware/stat.c, libc/sys/mmixware/sys/syscall.h,
libc/sys/mmixware/time.c, libc/sys/mmixware/times.c,
libc/sys/mmixware/unlink.c, libc/sys/mmixware/utime.c,
libc/sys/mmixware/wait.c, libc/sys/mmixware/write.c: New files.
* libc/sys/mmixware/configure, libc/sys/mmixware/Makefile.in,
libc/sys/mmixware/aclocal.m4: Generate.
2001-11-13 05:04:41 +08:00
|
|
|
#ifdef __MMIX__
|
|
|
|
#define __IEEE_BIG_ENDIAN
|
|
|
|
#endif
|
|
|
|
|
2000-02-18 03:39:52 +08:00
|
|
|
/* necv70 was __IEEE_LITTLE_ENDIAN. */
|
|
|
|
|
|
|
|
#ifdef __W65__
|
|
|
|
#define __IEEE_LITTLE_ENDIAN
|
|
|
|
#define __SMALL_BITFIELDS
|
|
|
|
#define _DOUBLE_IS_32BITS
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(__Z8001__) || defined(__Z8002__)
|
|
|
|
#define __IEEE_BIG_ENDIAN
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __m88k__
|
|
|
|
#define __IEEE_BIG_ENDIAN
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __mn10300__
|
|
|
|
#define __IEEE_LITTLE_ENDIAN
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __mn10200__
|
|
|
|
#define __IEEE_LITTLE_ENDIAN
|
|
|
|
#define __SMALL_BITFIELDS
|
|
|
|
#define _DOUBLE_IS_32BITS
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __v800
|
|
|
|
#define __IEEE_LITTLE_ENDIAN
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __v850
|
|
|
|
#define __IEEE_LITTLE_ENDIAN
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __D10V__
|
|
|
|
#define __IEEE_BIG_ENDIAN
|
2002-01-08 03:33:23 +08:00
|
|
|
#if __DOUBLE__ == 32
|
2000-02-18 03:39:52 +08:00
|
|
|
#define _DOUBLE_IS_32BITS
|
2002-01-08 03:33:23 +08:00
|
|
|
#endif
|
2000-02-18 03:39:52 +08:00
|
|
|
#define __SMALL_BITFIELDS
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __PPC__
|
|
|
|
#if (defined(_BIG_ENDIAN) && _BIG_ENDIAN) || (defined(_AIX) && _AIX)
|
|
|
|
#define __IEEE_BIG_ENDIAN
|
|
|
|
#else
|
|
|
|
#if (defined(_LITTLE_ENDIAN) && _LITTLE_ENDIAN) || (defined(__sun__) && __sun__) || (defined(_WIN32) && _WIN32)
|
|
|
|
#define __IEEE_LITTLE_ENDIAN
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __arc__
|
|
|
|
#ifdef __big_endian__
|
|
|
|
#define __IEEE_BIG_ENDIAN
|
|
|
|
#else
|
|
|
|
#define __IEEE_LITTLE_ENDIAN
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __fr30__
|
|
|
|
#define __IEEE_BIG_ENDIAN
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __mcore__
|
|
|
|
#define __IEEE_BIG_ENDIAN
|
|
|
|
#endif
|
|
|
|
|
2002-06-19 05:20:28 +08:00
|
|
|
#ifdef __frv__
|
|
|
|
#define __IEEE_BIG_ENDIAN
|
|
|
|
#endif
|
|
|
|
|
2000-05-11 10:28:06 +08:00
|
|
|
#ifdef __ia64__
|
|
|
|
#ifdef __BIG_ENDIAN__
|
|
|
|
#define __IEEE_BIG_ENDIAN
|
|
|
|
#else
|
|
|
|
#define __IEEE_LITTLE_ENDIAN
|
|
|
|
#endif
|
|
|
|
#endif
|
2000-02-18 03:39:52 +08:00
|
|
|
|
2000-06-28 03:51:33 +08:00
|
|
|
#ifdef __AVR__
|
|
|
|
#define __IEEE_LITTLE_ENDIAN
|
|
|
|
#define __SMALL_BITFIELDS
|
|
|
|
#define _DOUBLE_IS_32BITS
|
|
|
|
#endif
|
|
|
|
|
2000-12-05 02:22:10 +08:00
|
|
|
#if defined(__or32__) || defined(__or1k__) || defined(__or16__)
|
|
|
|
#define __IEEE_BIG_ENDIAN
|
|
|
|
#endif
|
|
|
|
|
2001-12-23 06:47:58 +08:00
|
|
|
#ifdef __xstormy16__
|
|
|
|
#define __IEEE_LITTLE_ENDIAN
|
|
|
|
#define __SMALL_BITFIELDS
|
|
|
|
#endif
|
|
|
|
|
2000-02-18 03:39:52 +08:00
|
|
|
#ifndef __IEEE_BIG_ENDIAN
|
|
|
|
#ifndef __IEEE_LITTLE_ENDIAN
|
|
|
|
#error Endianess not declared!!
|
|
|
|
#endif /* not __IEEE_LITTLE_ENDIAN */
|
|
|
|
#endif /* not __IEEE_BIG_ENDIAN */
|
|
|
|
|
|
|
|
#endif /* not __IEEE_LITTLE_ENDIAN */
|
|
|
|
#endif /* not __IEEE_BIG_ENDIAN */
|
|
|
|
|