diff options
author | wtc%netscape.com <devnull@localhost> | 2000-07-29 01:01:57 +0000 |
---|---|---|
committer | wtc%netscape.com <devnull@localhost> | 2000-07-29 01:01:57 +0000 |
commit | f57e69d432874e6b8c59544090ecc19880c59363 (patch) | |
tree | d1bb2eeb3f2b67a70877561caa90df7f0399d9e8 | |
parent | edfeb02e8e29d671e1c0a4951f16cc60c6269d77 (diff) | |
download | nspr-hg-f57e69d432874e6b8c59544090ecc19880c59363.tar.gz |
Bugzilla bug #45732: define align of double and long long for powerpc
correctly, and define the macros HAVE_ALIGNED_LONGLONGS and
HAVE_ALIGNED_DOUBLES if long longs or doubles are 8-byte aligned.
Thanks to Kevin B. Hendricks <khendricks@ivey.uwo.ca> and
Franz.Sirl-kernel@lauterbach.com for reporting the bug and suggesting a
fix. (NSPRPUB_CLIENT_BRANCH)
-rw-r--r-- | pr/include/md/_linux.cfg | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/pr/include/md/_linux.cfg b/pr/include/md/_linux.cfg index 33fa2683..6ad20d1b 100644 --- a/pr/include/md/_linux.cfg +++ b/pr/include/md/_linux.cfg @@ -65,9 +65,9 @@ #define PR_ALIGN_OF_SHORT 2 #define PR_ALIGN_OF_INT 4 #define PR_ALIGN_OF_LONG 4 -#define PR_ALIGN_OF_INT64 4 +#define PR_ALIGN_OF_INT64 8 #define PR_ALIGN_OF_FLOAT 4 -#define PR_ALIGN_OF_DOUBLE 4 +#define PR_ALIGN_OF_DOUBLE 8 #define PR_ALIGN_OF_POINTER 4 #define PR_ALIGN_OF_WORD 4 @@ -359,11 +359,12 @@ #endif #define HAVE_LONG_LONG -/* - * XXX These two macros need to be investigated for different architectures. - */ -#undef HAVE_ALIGNED_DOUBLES -#undef HAVE_ALIGNED_LONGLONGS +#if PR_ALIGN_OF_DOUBLE == 8 +#define HAVE_ALIGNED_DOUBLES +#endif +#if PR_ALIGN_OF_INT64 == 8 +#define HAVE_ALIGNED_LONGLONGS +#endif #ifndef NO_NSPR_10_SUPPORT |