Use a better algorithm for rounding sqrt results. Change the FIXME about
authorReid Spencer <rspencer@reidspencer.com>
Fri, 2 Mar 2007 04:21:55 +0000 (04:21 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Fri, 2 Mar 2007 04:21:55 +0000 (04:21 +0000)
commitf09aef7698bbae79a67287a353c63c1ca31055b0
treecfff01e89dbb4120d905e92b17c3f721c12030c7
parentc6a28fcf5db2b6e81607e45cd5210e3e07834eed
Use a better algorithm for rounding sqrt results. Change the FIXME about
this to a NOTE: because pari/gp results start to get rounded incorrectly
after 192 bits of precision. APInt and pari/gp never differ by more than
1, but APInt is more accurate because it does not lose precision after 192
bits as does pari/gp.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34834 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/APInt.cpp