mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-01-12 15:59:49 -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 p0 = sine_table_f32[n_int + 0];
|
||||||
const float p1 = sine_table_f32[n_int + 1];
|
const float p1 = sine_table_f32[n_int + 1];
|
||||||
const float diff = p1 - p0;
|
const float diff = p1 - p0;
|
||||||
//const float result = p0 + n_frac * diff;
|
const float result = p0 + n_frac * diff;
|
||||||
const float result = std::fma(n_frac, diff, p0);
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user