diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2015-03-09 18:35:18 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2015-03-09 18:35:18 +0000 |
commit | 37dce44f73be26ea0f3f327c279c6003cad5720d (patch) | |
tree | 672e995eaa6326dbf06873f77ff6bc1f964696f4 /llvm/lib/Support/APInt.cpp | |
parent | bd8d0f31088cd95b72a8f6d664b8c3d6af6d7f12 (diff) | |
download | bcm5719-llvm-37dce44f73be26ea0f3f327c279c6003cad5720d.tar.gz bcm5719-llvm-37dce44f73be26ea0f3f327c279c6003cad5720d.zip |
Drop the hacks used for partial C99 math libraries.
All supported platforms have half-way decent C99 support.
llvm-svn: 231679
Diffstat (limited to 'llvm/lib/Support/APInt.cpp')
-rw-r--r-- | llvm/lib/Support/APInt.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/Support/APInt.cpp b/llvm/lib/Support/APInt.cpp index 50a639cc51e..fefd0f35aaa 100644 --- a/llvm/lib/Support/APInt.cpp +++ b/llvm/lib/Support/APInt.cpp @@ -1310,13 +1310,8 @@ APInt APInt::sqrt() const { // libc sqrt function which will probably use a hardware sqrt computation. // This should be faster than the algorithm below. if (magnitude < 52) { -#if HAVE_ROUND return APInt(BitWidth, uint64_t(::round(::sqrt(double(isSingleWord()?VAL:pVal[0]))))); -#else - return APInt(BitWidth, - uint64_t(::sqrt(double(isSingleWord()?VAL:pVal[0])) + 0.5)); -#endif } // Okay, all the short cuts are exhausted. We must compute it. The following |