diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2014-10-28 17:52:52 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-11-09 01:07:07 +0000 |
commit | 96a39e7ee73f7781f57b330bfd0be96d822366e6 (patch) | |
tree | 33eba330254609ce411703e89e883b64eef4ddd2 /test | |
parent | bbe9a877ecc4f81fc17011b29a0d3bd13eac4540 (diff) | |
download | chrome-ec-96a39e7ee73f7781f57b330bfd0be96d822366e6.tar.gz |
math: use CONFIG_FPU when using float.
ifdef code than needs CONFIG_FPU (acos and friends)
BRANCH=ToT
BUG=chrome-os-partner:32050
TEST=define CONFIG_FPU on host board and use it.
Change-Id: I1c4ed16c23450bb4059d26044f4c1fe45b33674e
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/226414
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Reviewed-by: Sheng-liang Song <ssl@chromium.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/math_util.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/math_util.c b/test/math_util.c index 3c5a3fae01..46087e9f33 100644 --- a/test/math_util.c +++ b/test/math_util.c @@ -7,13 +7,17 @@ #include <math.h> #include <stdio.h> +#include "common.h" #include "math_util.h" #include "motion_sense.h" #include "test_util.h" #include "util.h" /*****************************************************************************/ -/* Need to define motion sensor globals just to compile. */ +/* + * Need to define motion sensor globals just to compile. + * We include motion task to force the inclusion of math_util.c + */ struct motion_sensor_t motion_sensors[] = {}; const unsigned int motion_sensor_count = ARRAY_SIZE(motion_sensors); |