Fix missing function when building without overflow support

This commit is contained in:
Martin Larralde 2019-09-08 15:28:05 +02:00 committed by GitHub
parent fd01d546a9
commit 6f6284807f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -113,7 +113,11 @@ fix16_t fix16_cos(fix16_t inAngle)
fix16_t fix16_tan(fix16_t inAngle)
{
#ifndef FIXMATH_NO_OVERFLOW
return fix16_sdiv(fix16_sin(inAngle), fix16_cos(inAngle));
#elif
return fix16_div(fix16_sin(inAngle), fix16_cos(inAngle));
#endif
}
fix16_t fix16_asin(fix16_t x)