summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/APInt.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-03-01 17:47:31 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-03-01 17:47:31 +0000
commit2f6ad4d3c3a222b713ff0204859ff1c3cc249120 (patch)
tree1d8b91b52226b57fa79d72376ffa83547026d856 /llvm/lib/Support/APInt.cpp
parent6ba8edc78988d686f0ef48c9c93ebd475082759f (diff)
downloadbcm5719-llvm-2f6ad4d3c3a222b713ff0204859ff1c3cc249120.tar.gz
bcm5719-llvm-2f6ad4d3c3a222b713ff0204859ff1c3cc249120.zip
Make the static table of results in sqrt const.
llvm-svn: 34791
Diffstat (limited to 'llvm/lib/Support/APInt.cpp')
-rw-r--r--llvm/lib/Support/APInt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/APInt.cpp b/llvm/lib/Support/APInt.cpp
index 50b0dc34fea..da8e77a7a0e 100644
--- a/llvm/lib/Support/APInt.cpp
+++ b/llvm/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,
OpenPOWER on IntegriCloud