From 72da63a5f378d56b00696872f3f28f40436f637e Mon Sep 17 00:00:00 2001 From: Gwendal Grignou Date: Tue, 28 Oct 2014 17:52:52 -0700 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/226414 Reviewed-by: Alec Berg Reviewed-by: Sheng-liang Song Reviewed-on: https://chromium-review.googlesource.com/229170 Reviewed-by: Mohammed Habibulla Commit-Queue: Mohammed Habibulla Tested-by: Mohammed Habibulla --- test/math_util.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test') 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 #include +#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); -- cgit v1.2.1