diff options
author | Mary Ruthven <mruthven@chromium.org> | 2021-11-12 10:52:44 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-11-18 04:54:57 +0000 |
commit | 006f8a6f4a2fdcb236825d87b429be81a9695e2a (patch) | |
tree | a35b7b419fe29e67d513a46206aa38bf53a3e77b /test | |
parent | b46752dc210a5521a1782fd79e765596380c5a67 (diff) | |
download | chrome-ec-006f8a6f4a2fdcb236825d87b429be81a9695e2a.tar.gz |
Revert "rsa: Optimization of multiplications for Cortex-M0"
This reverts commit 49ff62bf0be5cfc88e092f987d77c18a0b21390a.
BUG=b:200823466
TEST=make buildall -j
Change-Id: I144e310c00d6490d278ca6215bf0a37d3cfc7d4f
Signed-off-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3285751
Reviewed-by: Vadim Sukhomlinov <sukhomlinov@chromium.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/utils.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/test/utils.c b/test/utils.c index 119ce98543..1cd86830ed 100644 --- a/test/utils.c +++ b/test/utils.c @@ -12,7 +12,6 @@ #include "test_util.h" #include "timer.h" #include "util.h" -#include "watchdog.h" static int test_memmove(void) { @@ -357,31 +356,6 @@ static int test_cond_t(void) return EC_SUCCESS; } -static int test_mula32(void) -{ - uint64_t r = 0x0; - uint32_t b = 0x1; - uint32_t c = 0x1; - uint32_t i; - timestamp_t t0, t1; - - t0 = get_time(); - for (i = 0; i < 5000000; i++) { - r = mula32(b, c, r + (r >> 32)); - b = (b << 13) ^ (b >> 2) ^ i; - c = (c << 16) ^ (c >> 7) ^ i; - watchdog_reload(); - } - t1 = get_time(); - - ccprintf("After %d iterations, r=%08x%08x (time: %d)\n", i, - (uint32_t)(r >> 32), (uint32_t)r, t1.le.lo-t0.le.lo); - TEST_ASSERT(r == 0x9df59b9fb0ab9d96L); - - /* well okay then */ - return EC_SUCCESS; -} - static int test_bytes_are_trivial(void) { static const uint8_t all0x00[] = { 0x00, 0x00, 0x00 }; @@ -416,7 +390,6 @@ void run_test(void) RUN_TEST(test_shared_mem); RUN_TEST(test_scratchpad); RUN_TEST(test_cond_t); - RUN_TEST(test_mula32); RUN_TEST(test_bytes_are_trivial); test_print_result(); |