diff options
author | Edward O'Callaghan <eocallaghan@auroraux.org> | 2009-08-09 18:41:02 +0000 |
---|---|---|
committer | Edward O'Callaghan <eocallaghan@auroraux.org> | 2009-08-09 18:41:02 +0000 |
commit | ccf48131d045e9baf92d215a0b6ca79cafee89b4 (patch) | |
tree | f3bff39c21726a511b32f2dff5d6db9390b7db44 /compiler-rt/lib/fixunsxfdi.c | |
parent | f48123b4136d80b1a00f3bd5bd186d40cac11ead (diff) | |
download | bcm5719-llvm-ccf48131d045e9baf92d215a0b6ca79cafee89b4.tar.gz bcm5719-llvm-ccf48131d045e9baf92d215a0b6ca79cafee89b4.zip |
Refactor to remove un-named struct gnu extension usage. Now ISO C89 and C99 compliant. Comment trailing endifs
llvm-svn: 78537
Diffstat (limited to 'compiler-rt/lib/fixunsxfdi.c')
-rw-r--r-- | compiler-rt/lib/fixunsxfdi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/lib/fixunsxfdi.c b/compiler-rt/lib/fixunsxfdi.c index e09f2d06de9..872727bcd3d 100644 --- a/compiler-rt/lib/fixunsxfdi.c +++ b/compiler-rt/lib/fixunsxfdi.c @@ -35,8 +35,8 @@ __fixunsxfdi(long double a) { long_double_bits fb; fb.f = a; - int e = (fb.u.high.low & 0x00007FFF) - 16383; - if (e < 0 || (fb.u.high.low & 0x00008000)) + int e = (fb.u.high.s.low & 0x00007FFF) - 16383; + if (e < 0 || (fb.u.high.s.low & 0x00008000)) return 0; return fb.u.low.all >> (63 - e); } |