mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 19:42:54 +02:00
Add a FIXME
llvm-svn: 34828
This commit is contained in:
parent
1be4796f45
commit
39b817765b
@ -1239,6 +1239,9 @@ APInt APInt::sqrt() const {
|
||||
}
|
||||
|
||||
// Make sure we return the closest approximation
|
||||
// FIXME: This still has an off-by-one error in it. Test case:
|
||||
// 190 bits: sqrt(694114394047834196220892040454508646882614255319893124270) =
|
||||
// 26346050824513229049493703285 (not 26346050824513229049493703284)
|
||||
APInt square(x_old * x_old);
|
||||
APInt nextSquare((x_old + 1) * (x_old +1));
|
||||
if (this->ult(square))
|
||||
|
Loading…
Reference in New Issue
Block a user