mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Make the static table of results in sqrt const.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34791 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e479ef0b41
commit
4e1e87f09c
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user