mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-25 17:20:48 +00:00
fix a bug for hosts without round, PR8893.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131842 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1375,7 +1375,7 @@ APInt APInt::sqrt() const {
|
||||
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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user