diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2016-02-26 20:25:26 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2016-02-26 20:25:26 +0000 |
commit | a837eb5ff117da69b6a71f4a2691d69727c4a2a1 (patch) | |
tree | bc4e5551cfa238b95db4d57f38b56c97c0664caa /lib/msun/powerpc | |
parent | 7fc57610ab8240efeb317b4238b794843071bd52 (diff) | |
download | FreeBSD-src-a837eb5ff117da69b6a71f4a2691d69727c4a2a1.zip FreeBSD-src-a837eb5ff117da69b6a71f4a2691d69727c4a2a1.tar.gz |
Make FPSCR definition endian clean.
PR: 207526
Submitted by: Simon Byrne
Obtained from: Julia
MFC after: 1 month
Diffstat (limited to 'lib/msun/powerpc')
-rw-r--r-- | lib/msun/powerpc/fenv.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/msun/powerpc/fenv.h b/lib/msun/powerpc/fenv.h index b96fdee..33de375 100644 --- a/lib/msun/powerpc/fenv.h +++ b/lib/msun/powerpc/fenv.h @@ -97,8 +97,13 @@ extern const fenv_t __fe_dfl_env; union __fpscr { double __d; struct { +#if _BYTE_ORDER == _LITTLE_ENDIAN + fenv_t __reg; + __uint32_t __junk; +#else __uint32_t __junk; fenv_t __reg; +#endif } __bits; }; |