[llvm-commits] [llvm] r131842 - /llvm/trunk/lib/Support/APInt.cpp
Chris Lattner
sabre at nondot.org
Sat May 21 23:03:53 PDT 2011
Author: lattner
Date: Sun May 22 01:03:53 2011
New Revision: 131842
URL: http://llvm.org/viewvc/llvm-project?rev=131842&view=rev
Log:
fix a bug for hosts without round, PR8893.
Modified:
llvm/trunk/lib/Support/APInt.cpp
Modified: llvm/trunk/lib/Support/APInt.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/APInt.cpp?rev=131842&r1=131841&r2=131842&view=diff
==============================================================================
--- llvm/trunk/lib/Support/APInt.cpp (original)
+++ llvm/trunk/lib/Support/APInt.cpp Sun May 22 01:03:53 2011
@@ -1375,7 +1375,7 @@
uint64_t(::round(::sqrt(double(isSingleWord()?VAL:pVal[0])))));
#else
return APInt(BitWidth,
- uint64_t(::sqrt(double(isSingleWord()?VAL:pVal[0]))) + 0.5);
+ uint64_t(::sqrt(double(isSingleWord()?VAL:pVal[0])) + 0.5));
#endif
}
More information about the llvm-commits
mailing list