mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
fix constant table in cosine
This commit is contained in:
parent
9d23703e45
commit
6cc9e2d5f7
1 changed files with 9 additions and 9 deletions
|
|
@ -147,15 +147,15 @@ static inline fp_t fp_div(fp_t a, fp_t b)
|
|||
* Values fit in int16_t (max 4096 <= 32767).
|
||||
*/
|
||||
static const int16_t cos_table[COS_TABLE_ENTRIES + 1] = {
|
||||
4096, 4096, 4095, 4094, 4092, 4090, 4087, 4083,
|
||||
4078, 4073, 4067, 4060, 4052, 4044, 4035, 4025,
|
||||
4014, 4003, 3991, 3978, 3964, 3950, 3935, 3919,
|
||||
3902, 3885, 3867, 3848, 3828, 3807, 3786, 3764,
|
||||
3741, 3718, 3694, 3669, 3643, 3617, 3590, 3563,
|
||||
3535, 3506, 3477, 3447, 3417, 3386, 3354, 3322,
|
||||
3289, 3256, 3222, 3188, 3153, 3118, 3082, 3046,
|
||||
3009, 2972, 2935, 2897, 2859, 2820, 2781, 2742,
|
||||
2702
|
||||
4096, 4095, 4091, 4085, 4076, 4065, 4052, 4036,
|
||||
4017, 3996, 3973, 3948, 3920, 3889, 3857, 3822,
|
||||
3784, 3745, 3703, 3659, 3612, 3564, 3513, 3461,
|
||||
3406, 3349, 3290, 3229, 3166, 3102, 3035, 2967,
|
||||
2896, 2824, 2751, 2675, 2598, 2520, 2440, 2359,
|
||||
2276, 2191, 2106, 2019, 1931, 1842, 1751, 1660,
|
||||
1567, 1474, 1380, 1285, 1189, 1092, 995, 897,
|
||||
799, 700, 601, 501, 401, 301, 201, 101,
|
||||
0
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue