Correction of issue #2

pull/34/head
Christophe Favergeon 3 years ago
parent 5721f94b28
commit 7a3816fcdd

@ -78,8 +78,6 @@ void arm_sin_cos_f32(
d1 = -sinTable_f32[indexS ]; d1 = -sinTable_f32[indexS ];
d2 = -sinTable_f32[indexS+1]; d2 = -sinTable_f32[indexS+1];
temp = (1.0f - fract) * f1 + fract * f2;
Dn = 0.0122718463030f; /* delta between the two points (fixed), in this case 2*pi/FAST_MATH_TABLE_SIZE */ Dn = 0.0122718463030f; /* delta between the two points (fixed), in this case 2*pi/FAST_MATH_TABLE_SIZE */
Df = f2 - f1; /* delta between the values of the functions */ Df = f2 - f1; /* delta between the values of the functions */
@ -96,7 +94,6 @@ void arm_sin_cos_f32(
d1 = sinTable_f32[indexC ]; d1 = sinTable_f32[indexC ];
d2 = sinTable_f32[indexC+1]; d2 = sinTable_f32[indexC+1];
temp = (1.0f - fract) * f1 + fract * f2;
Df = f2 - f1; // delta between the values of the functions Df = f2 - f1; // delta between the values of the functions
temp = Dn * (d1 + d2) - 2 * Df; temp = Dn * (d1 + d2) - 2 * Df;

Loading…
Cancel
Save