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-11 23:07:05 +0000 |
commit | 72da63a5f378d56b00696872f3f28f40436f637e (patch) | |
tree | 535ee77166d4544988fd042ad2cbeaea5154c312 /test | |
parent | 1a38df1105020b7fc82e9a2ec100de8d29ca6c04 (diff) | |
download | chrome-ec-72da63a5f378d56b00696872f3f28f40436f637e.tar.gz |
CHERRY-PICK: 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: I6bb6c280e6f8af882b52e95c1b01dd26e31d286e
Original-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>
Reviewed-on: https://chromium-review.googlesource.com/229170
Reviewed-by: Mohammed Habibulla <moch@chromium.org>
Commit-Queue: Mohammed Habibulla <moch@chromium.org>
Tested-by: Mohammed Habibulla <moch@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); |