diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2014-03-06 14:19:04 -0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-03-07 18:52:48 +0000 |
commit | ada635006d80064aa9aa2706838eb16d81832cd8 (patch) | |
tree | a970d72cb901dc30250f8582af78349056c1b2e4 /test/utils.c | |
parent | cb462f29c640a6913c1ad98fecf2132d720c2488 (diff) | |
download | chrome-ec-ada635006d80064aa9aa2706838eb16d81832cd8.tar.gz |
test: remove one more 64-bit multiplication
On some CPU cores, the compiler needs an helper to perform the 64-bit
multiplication. As the only remaining 64-bit multiplication in the code base
is not necessary, fix it rather than adding the helper.
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BRANCH=none
BUG=none
TEST=build for Cortex-M0 platform.
Change-Id: I88dd7a4f2eabeca5b03fb3db232bbca9a037dcf8
Reviewed-on: https://chromium-review.googlesource.com/189151
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Commit-Queue: Vincent Palatin <vpalatin@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'test/utils.c')
-rw-r--r-- | test/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/utils.c b/test/utils.c index 9d33a1264f..e60198225e 100644 --- a/test/utils.c +++ b/test/utils.c @@ -201,7 +201,7 @@ static int test_memset(void) ccprintf(" %d us) ", t3.val-t2.val); /* Expected about 4x speed gain. Use 3x because it fluctuates */ - TEST_ASSERT((t1.val-t0.val) > (t3.val-t2.val) * 3); + TEST_ASSERT((t1.val-t0.val) > (unsigned)(t3.val-t2.val) * 3); memset(buf, 128, len); TEST_ASSERT_MEMSET(buf, (char)128, len); |