From 2040647fbbf5931b5af03b1f1fb1a27e86fa8879 Mon Sep 17 00:00:00 2001 From: "Kwabena W. Agyeman" Date: Tue, 19 Jun 2018 00:10:51 -0400 Subject: [PATCH] Use fast arm sin/cos. --- src/omv/img/apriltag.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/omv/img/apriltag.c b/src/omv/img/apriltag.c index 180b7a7f2..b8ffbe4e6 100644 --- a/src/omv/img/apriltag.c +++ b/src/omv/img/apriltag.c @@ -78,8 +78,8 @@ either expressed or implied, of the Regents of The University of Michigan. #define log2(x) fast_log2(x) #undef log2f #define log2f(x) fast_log2(x) -#define cos(x) cosf(x) -#define sin(x) sinf(x) +#define sin(x) arm_sin_f32(x) +#define cos(x) arm_cos_f32(x) #define fmin(a, b) ({ __typeof__ (a) _a = (a); __typeof__ (b) _b = (b); _a < _b ? _a : _b; }) #define fminf(a, b) ({ __typeof__ (a) _a = (a); __typeof__ (b) _b = (b); _a < _b ? _a : _b; }) #define fmax(a, b) ({ __typeof__ (a) _a = (a); __typeof__ (b) _b = (b); _a > _b ? _a : _b; })