projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e479ef0
)
Make the static table of results in sqrt const.
author
Reid Spencer
<rspencer@reidspencer.com>
Thu, 1 Mar 2007 17:47:31 +0000
(17:47 +0000)
committer
Reid Spencer
<rspencer@reidspencer.com>
Thu, 1 Mar 2007 17:47:31 +0000
(17:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34791
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/APInt.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/APInt.cpp
b/lib/Support/APInt.cpp
index 50b0dc34fea0576c527375a1c489b8062c3ecd19..da8e77a7a0e7614851ee25c5ca8270062974c95d 100644
(file)
--- a/
lib/Support/APInt.cpp
+++ b/
lib/Support/APInt.cpp
@@
-1190,7
+1190,7
@@
APInt APInt::sqrt() const {
// Use a fast table for some small values. This also gets rid of some
// rounding errors in libc sqrt for small values.
if (magnitude <= 5) {
- static uint8_t results[32] = {
+ static
const
uint8_t results[32] = {
/* 0 */ 0,
/* 1- 2 */ 1, 1,
/* 3- 6 */ 2, 2, 2, 2,