diff options
| author | Martin Larralde <martin.larralde@ens-paris-saclay.fr> | 2019-09-08 15:28:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-08 15:28:05 +0200 |
| commit | 6f6284807f5f4a89128eb75b53f0243a9bedeb46 (patch) | |
| tree | ff611f8a0f75520111752c41aa105269542ada5c | |
| parent | fd01d546a914be8060a04982ea9f3121d547ec2d (diff) | |
Fix missing function when building without overflow support
| -rw-r--r-- | libfixmath/fix16_trig.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libfixmath/fix16_trig.c b/libfixmath/fix16_trig.c index 07c98bd..791bb3e 100644 --- a/libfixmath/fix16_trig.c +++ b/libfixmath/fix16_trig.c @@ -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)
|
