summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/fixdfdi.c
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@auroraux.org>2009-08-09 18:41:02 +0000
committerEdward O'Callaghan <eocallaghan@auroraux.org>2009-08-09 18:41:02 +0000
commitccf48131d045e9baf92d215a0b6ca79cafee89b4 (patch)
treef3bff39c21726a511b32f2dff5d6db9390b7db44 /compiler-rt/lib/fixdfdi.c
parentf48123b4136d80b1a00f3bd5bd186d40cac11ead (diff)
downloadbcm5719-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/fixdfdi.c')
-rw-r--r--compiler-rt/lib/fixdfdi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler-rt/lib/fixdfdi.c b/compiler-rt/lib/fixdfdi.c
index fa5dd8993a2..3d3116c1811 100644
--- a/compiler-rt/lib/fixdfdi.c
+++ b/compiler-rt/lib/fixdfdi.c
@@ -28,13 +28,13 @@ __fixdfdi(double a)
{
double_bits fb;
fb.f = a;
- int e = ((fb.u.high & 0x7FF00000) >> 20) - 1023;
+ int e = ((fb.u.s.high & 0x7FF00000) >> 20) - 1023;
if (e < 0)
return 0;
- di_int s = (si_int)(fb.u.high & 0x80000000) >> 31;
+ di_int s = (si_int)(fb.u.s.high & 0x80000000) >> 31;
dwords r;
- r.high = (fb.u.high & 0x000FFFFF) | 0x00100000;
- r.low = fb.u.low;
+ r.s.high = (fb.u.s.high & 0x000FFFFF) | 0x00100000;
+ r.s.low = fb.u.s.low;
if (e > 52)
r.all <<= (e - 52);
else
OpenPOWER on IntegriCloud