diff options
author | Brandon Bergren <bdragon@FreeBSD.org> | 2020-09-23 02:05:44 +0000 |
---|---|---|
committer | Brandon Bergren <bdragon@FreeBSD.org> | 2020-09-23 02:05:44 +0000 |
commit | b25731010333d1b7654d31a1a58c2bf1d3b6a177 (patch) | |
tree | 685a9b158f6667608df252d63541edf68195518c /lib/libc | |
parent | 0d356a5349afc0d67bdbb20097f912c69213e187 (diff) |
Notes
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/powerpc/softfloat/powerpc-gcc.h | 4 | ||||
-rw-r--r-- | lib/libc/powerpc64/arith.h | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/lib/libc/powerpc/softfloat/powerpc-gcc.h b/lib/libc/powerpc/softfloat/powerpc-gcc.h index e2f8680dd74eb..0fbb8006e22de 100644 --- a/lib/libc/powerpc/softfloat/powerpc-gcc.h +++ b/lib/libc/powerpc/softfloat/powerpc-gcc.h @@ -6,7 +6,11 @@ One of the macros `BIGENDIAN' or `LITTLEENDIAN' must be defined. ------------------------------------------------------------------------------- */ +#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ +#define LITTLEENDIAN +#else #define BIGENDIAN +#endif /* ------------------------------------------------------------------------------- diff --git a/lib/libc/powerpc64/arith.h b/lib/libc/powerpc64/arith.h index 3c35b80f35c33..03a162fd035b3 100644 --- a/lib/libc/powerpc64/arith.h +++ b/lib/libc/powerpc64/arith.h @@ -11,8 +11,13 @@ * architecture. See contrib/gdtoa/gdtoaimp.h for details. */ +#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ +#define IEEE_8087 +#define Arith_Kind_ASL 1 +#else #define IEEE_MC68k #define Arith_Kind_ASL 2 +#endif #define Long int #define Intcast (int)(long) #define Double_Align |