Commit b0e7f2c0 authored by Ohji Nakagami's avatar Ohji Nakagami Committed by David Flynn
Browse files

trisoup: fix atan2 table bounds

There should only be 41 entries, not 50 entries in the atan2 lookup
table used by trisoup.
parent 551d2a84
......@@ -187,10 +187,10 @@ trisoupAtan2(int32_t x, int32_t y)
if (z <= 256) { //1<<kTrisoupFpBits
idx = z / 12; //0.05<<kTrisoupFpBits
} else {
idx = z > 49 ? 49 : z;
idx = z > 40 ? 40 : z;
}
static const int kAtanLut[50] = {
static const int kAtanLut[41] = {
0, 12, 25, 38, 50, 62, 74, 86, 97, 108, 118, 128, 138, 147,
156, 164, 172, 180, 187, 194, 201, 283, 319, 339, 351, 359, 365, 370,
373, 376, 378, 380, 382, 383, 385, 386, 387, 387, 388, 389, 389};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment