summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/DataExtractor.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-08-30 17:50:57 +0000
committerEric Christopher <echristo@gmail.com>2013-08-30 17:50:57 +0000
commit2490f5c9f6a4d18fa8274a1e32b995425c75321e (patch)
treed5fb63e92516207aeef21e03da698895ccd82f77 /lldb/source/Core/DataExtractor.cpp
parentff3476e4999948bd8f986c284d1eba6e2e118ba9 (diff)
downloadbcm5719-llvm-2490f5c9f6a4d18fa8274a1e32b995425c75321e.tar.gz
bcm5719-llvm-2490f5c9f6a4d18fa8274a1e32b995425c75321e.zip
Fix a bunch of compile time warnings and a build failure on ubuntu.
llvm-svn: 189683
Diffstat (limited to 'lldb/source/Core/DataExtractor.cpp')
-rw-r--r--lldb/source/Core/DataExtractor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Core/DataExtractor.cpp b/lldb/source/Core/DataExtractor.cpp
index 518faeb71ea..8c0ee038567 100644
--- a/lldb/source/Core/DataExtractor.cpp
+++ b/lldb/source/Core/DataExtractor.cpp
@@ -1336,12 +1336,12 @@ static float half2float (uint16_t half)
if( 0 == (v & 0x7c00))
{
u.u = v & 0x80007FFFU;
- return u.f * 0x1.0p125f;
+ return u.f * ldexpf(1, 125);
}
v <<= 13;
u.u = v | 0x70000000U;
- return u.f * 0x1.0p-112f;
+ return u.f * ldexpf(1, -112);
}
lldb::offset_t
OpenPOWER on IntegriCloud