| 28 | static short global_table[INTER_TAB_SIZE * INTER_TAB_SIZE * 2 * 2]; |
| 29 | static bool init_table = false; |
| 30 | static inline void interpolate_linear(float x, float* coeffs) { |
| 31 | coeffs[0] = 1.f - x; |
| 32 | coeffs[1] = x; |
| 33 | } |
| 34 | static inline void init_inter_tab_1d(float* tab, int tabsz) { |
| 35 | float scale = 1.f / tabsz; |
| 36 | for (int i = 0; i < tabsz; ++i, tab += 2) |