Commit | Line | Data |
---|---|---|
bab9793f EF |
1 | This is modeled after the ia64 support. Aarch64 can be either big endian |
2 | or little endian, so we add the case for both. | |
3 | ||
4 | --- | |
5 | native/fdlibm/ieeefp.h | 8 ++++++++ | |
6 | 1 file changed, 8 insertions(+) | |
7 | ||
8 | diff --git a/native/fdlibm/ieeefp.h b/native/fdlibm/ieeefp.h | |
9 | index 1a9740f..73455c0 100644 | |
10 | --- a/native/fdlibm/ieeefp.h | |
11 | +++ b/native/fdlibm/ieeefp.h | |
12 | @@ -27,6 +27,14 @@ | |
13 | #endif | |
14 | #endif | |
15 | ||
16 | +#ifdef __aarch64__ | |
17 | +#ifdef __BIG_ENDIAN__ | |
18 | +#define __IEEE_BIG_ENDIAN | |
19 | +#else | |
20 | +#define __IEEE_LITTLE_ENDIAN | |
21 | +#endif | |
22 | +#endif | |
23 | + | |
24 | #ifdef __hppa__ | |
25 | #define __IEEE_BIG_ENDIAN | |
26 | #endif | |
27 | -- | |
28 | 2.16.3 | |
29 |