mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-27 18:25:05 +00:00
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>
This commit is contained in:
committed by
chrome-internal-fetch
parent
cb462f29c6
commit
ada635006d
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user