summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib
diff options
context:
space:
mode:
authorJeroen Ketema <j.ketema@imperial.ac.uk>2016-06-13 15:24:16 +0000
committerJeroen Ketema <j.ketema@imperial.ac.uk>2016-06-13 15:24:16 +0000
commitaf0bbd92a2ea14a42a7ca83da5d40bf18a0a7aba (patch)
treed61e7f11f8e294919ca98117caeb1658874a8c3e /compiler-rt/lib
parent0b748f220bdbf7e5b9470cb814f2f894eca75f26 (diff)
downloadbcm5719-llvm-af0bbd92a2ea14a42a7ca83da5d40bf18a0a7aba.tar.gz
bcm5719-llvm-af0bbd92a2ea14a42a7ca83da5d40bf18a0a7aba.zip
[builtins] Make SOFT_FP versions of floatdidf and floatundidf compile
llvm-svn: 272551
Diffstat (limited to 'compiler-rt/lib')
-rw-r--r--compiler-rt/lib/builtins/floatdidf.c8
-rw-r--r--compiler-rt/lib/builtins/floatundidf.c6
2 files changed, 7 insertions, 7 deletions
diff --git a/compiler-rt/lib/builtins/floatdidf.c b/compiler-rt/lib/builtins/floatdidf.c
index 92af4d8a845..2b023ad08be 100644
--- a/compiler-rt/lib/builtins/floatdidf.c
+++ b/compiler-rt/lib/builtins/floatdidf.c
@@ -98,10 +98,10 @@ __floatdidf(di_int a)
/* a is now rounded to DBL_MANT_DIG bits */
}
double_bits fb;
- fb.u.high = ((su_int)s & 0x80000000) | /* sign */
- ((e + 1023) << 20) | /* exponent */
- ((su_int)(a >> 32) & 0x000FFFFF); /* mantissa-high */
- fb.u.low = (su_int)a; /* mantissa-low */
+ fb.u.s.high = ((su_int)s & 0x80000000) | /* sign */
+ ((e + 1023) << 20) | /* exponent */
+ ((su_int)(a >> 32) & 0x000FFFFF); /* mantissa-high */
+ fb.u.s.low = (su_int)a; /* mantissa-low */
return fb.f;
}
#endif
diff --git a/compiler-rt/lib/builtins/floatundidf.c b/compiler-rt/lib/builtins/floatundidf.c
index d0622090cca..cfd3a7a3b33 100644
--- a/compiler-rt/lib/builtins/floatundidf.c
+++ b/compiler-rt/lib/builtins/floatundidf.c
@@ -98,9 +98,9 @@ __floatundidf(du_int a)
/* a is now rounded to DBL_MANT_DIG bits */
}
double_bits fb;
- fb.u.high = ((e + 1023) << 20) | /* exponent */
- ((su_int)(a >> 32) & 0x000FFFFF); /* mantissa-high */
- fb.u.low = (su_int)a; /* mantissa-low */
+ fb.u.s.high = ((e + 1023) << 20) | /* exponent */
+ ((su_int)(a >> 32) & 0x000FFFFF); /* mantissa-high */
+ fb.u.s.low = (su_int)a; /* mantissa-low */
return fb.f;
}
#endif
OpenPOWER on IntegriCloud