Commit ae8de060 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

rotate: stick to single precision arithmetic

parent b344246d
......@@ -92,7 +92,7 @@ struct filter_sys_t
static void store_trigo( struct filter_sys_t *sys, float f_angle )
{
f_angle *= M_PI / 180.f; /* degrees -> radians */
f_angle *= (float)(M_PI / 180.); /* degrees -> radians */
uint16_t i_sin = lroundf(sinf(f_angle) * 4096.f);
uint16_t i_cos = lroundf(cosf(f_angle) * 4096.f);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment