summaryrefslogtreecommitdiff
path: root/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
commitc84c40757239fde66dfa0fdd35aaa5f069fa03cd (patch)
tree1dd651a57cb4debca83f4877978c922f5458cb76 /lib/builtins/floatdidf.c
parent5885e1e27091f3774465b62649c271bd13a237ae (diff)
downloadcompiler-rt-c84c40757239fde66dfa0fdd35aaa5f069fa03cd.tar.gz
[builtins] replace tabs by spaces and remove whitespace at end of line NFC
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@272550 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/builtins/floatdidf.c')
-rw-r--r--lib/builtins/floatdidf.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/builtins/floatdidf.c b/lib/builtins/floatdidf.c
index a300c9f31..92af4d8a8 100644
--- a/lib/builtins/floatdidf.c
+++ b/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