[llvm-commits] CVS: llvm/lib/Support/APInt.cpp

Reid Spencer reid at x10sys.com
Thu Mar 1 09:47:48 PST 2007



Changes in directory llvm/lib/Support:

APInt.cpp updated: 1.62 -> 1.63
---
Log message:

Make the static table of results in sqrt const.


---
Diffs of the changes:  (+1 -1)

 APInt.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Support/APInt.cpp
diff -u llvm/lib/Support/APInt.cpp:1.62 llvm/lib/Support/APInt.cpp:1.63
--- llvm/lib/Support/APInt.cpp:1.62	Thu Mar  1 11:15:32 2007
+++ llvm/lib/Support/APInt.cpp	Thu Mar  1 11:47:31 2007
@@ -1190,7 +1190,7 @@
   // 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, 






More information about the llvm-commits mailing list