| 66 | */ |
| 67 | f32 sinShort(s16 v) const { return mTable[static_cast<u16>(v) >> (16U - N)].first; } |
| 68 | f32 cosShort(s16 v) const { return mTable[static_cast<u16>(v) >> (16U - N)].second; } |
| 69 | f32 sinLap(f32 x) const { |
| 70 | if (x < 0.0f) { |
| 71 | return -mTable[static_cast<u16>(-(T)(1 << N) * x) & ((1 << N) - 1)].first; |