mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-12-24 06:49:24 -05:00
std::fma not necessary with proper compiler options.
std::fma isn't available on Ubuntu 15.04 arm-gcc, apparently. Hence my reviewing this code...
This commit is contained in:
parent
5dcca89172
commit
85383e488b
@ -142,8 +142,7 @@ inline float sin_f32(const float w) {
|
||||
const float p0 = sine_table_f32[n_int + 0];
|
||||
const float p1 = sine_table_f32[n_int + 1];
|
||||
const float diff = p1 - p0;
|
||||
//const float result = p0 + n_frac * diff;
|
||||
const float result = std::fma(n_frac, diff, p0);
|
||||
const float result = p0 + n_frac * diff;
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user