mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-30 08:40:07 +00:00
3bdeb53ad6
Patch from addsub@eyou.com: * sysdeps/arm/ieee754.h: Deleted. * sysdeps/arm/gmp-mparam.h: Support VFP and big endian. * sysdeps/arm/bits/endian.h: Likewise.
20 lines
534 B
C
20 lines
534 B
C
#ifndef _ENDIAN_H
|
|
# error "Never use <bits/endian.h> directly; include <endian.h> instead."
|
|
#endif
|
|
|
|
/* ARM can be either big or little endian. */
|
|
#ifdef __ARMEB__
|
|
#define __BYTE_ORDER __BIG_ENDIAN
|
|
#else
|
|
#define __BYTE_ORDER __LITTLE_ENDIAN
|
|
#endif
|
|
|
|
/* FPA floating point units are always big-endian, irrespective of the
|
|
CPU endianness. VFP floating point units use the same endianness
|
|
as the rest of the system. */
|
|
#ifdef __VFP_FP__
|
|
#define __FLOAT_WORD_ORDER __BYTE_ORDER
|
|
#else
|
|
#define __FLOAT_WORD_ORDER __BIG_ENDIAN
|
|
#endif
|