summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/builtins/floatdidf.c
diff options
context:
space:
mode:
authorJeroen Ketema <j.ketema@imperial.ac.uk>2016-06-13 15:21:04 +0000
committerJeroen Ketema <j.ketema@imperial.ac.uk>2016-06-13 15:21:04 +0000
commit0b748f220bdbf7e5b9470cb814f2f894eca75f26 (patch)
treefac0e14d453131804842f0066b32b10498961223 /compiler-rt/lib/builtins/floatdidf.c
parent880f0c252b6b31461f1a752fa2f5235c7fa410e9 (diff)
downloadbcm5719-llvm-0b748f220bdbf7e5b9470cb814f2f894eca75f26.tar.gz
bcm5719-llvm-0b748f220bdbf7e5b9470cb814f2f894eca75f26.zip
[builtins] replace tabs by spaces and remove whitespace at end of line NFC
llvm-svn: 272550
Diffstat (limited to 'compiler-rt/lib/builtins/floatdidf.c')
-rw-r--r--compiler-rt/lib/builtins/floatdidf.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/compiler-rt/lib/builtins/floatdidf.c b/compiler-rt/lib/builtins/floatdidf.c
index a300c9f312d..92af4d8a845 100644
--- a/compiler-rt/lib/builtins/floatdidf.c
+++ b/compiler-rt/lib/builtins/floatdidf.c
@@ -16,7 +16,7 @@
/* Returns: convert a to a double, rounding toward even. */
-/* Assumption: double is a IEEE 64 bit floating point type
+/* Assumption: double is a IEEE 64 bit floating point type
* di_int is a 64 bit integral type
*/
@@ -32,16 +32,16 @@ ARM_EABI_FNALIAS(l2d, floatdidf)
COMPILER_RT_ABI double
__floatdidf(di_int a)
{
- static const double twop52 = 4503599627370496.0; // 0x1.0p52
- static const double twop32 = 4294967296.0; // 0x1.0p32
-
- union { int64_t x; double d; } low = { .d = twop52 };
-
- const double high = (int32_t)(a >> 32) * twop32;
- low.x |= a & INT64_C(0x00000000ffffffff);
-
- const double result = (high - twop52) + low.d;
- return result;
+ static const double twop52 = 4503599627370496.0; // 0x1.0p52
+ static const double twop32 = 4294967296.0; // 0x1.0p32
+
+ union { int64_t x; double d; } low = { .d = twop52 };
+
+ const double high = (int32_t)(a >> 32) * twop32;
+ low.x |= a & INT64_C(0x00000000ffffffff);
+
+ const double result = (high - twop52) + low.d;
+ return result;
}
#else
OpenPOWER on IntegriCloud