summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@chromium.org>2021-11-12 10:52:44 -0600
committerCommit Bot <commit-bot@chromium.org>2021-11-18 04:54:57 +0000
commit006f8a6f4a2fdcb236825d87b429be81a9695e2a (patch)
treea35b7b419fe29e67d513a46206aa38bf53a3e77b /include
parentb46752dc210a5521a1782fd79e765596380c5a67 (diff)
downloadchrome-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 'include')
-rw-r--r--include/config.h7
-rw-r--r--include/util.h18
2 files changed, 0 insertions, 25 deletions
diff --git a/include/config.h b/include/config.h
index 523bf2045b..aef1d301c5 100644
--- a/include/config.h
+++ b/include/config.h
@@ -276,13 +276,6 @@
/* Support AP Warm reset Interrupt. */
#undef CONFIG_AP_WARM_RESET_INTERRUPT
-/*
- * Defined if core/ code provides assembly optimized implementation of
- * multiply-accumulate operations (32-bit operands, 64-bit result), for the
- * cores that lack native instructions.
- */
-#undef CONFIG_ASSEMBLY_MULA32
-
/* Support audio codec. */
#undef CONFIG_AUDIO_CODEC
/* Audio codec caps. */
diff --git a/include/util.h b/include/util.h
index d05869305d..90e52dd2a5 100644
--- a/include/util.h
+++ b/include/util.h
@@ -222,24 +222,6 @@ int parse_offset_size(int argc, char **argv, int shift,
*/
void hexdump(const uint8_t *data, int len);
-#ifdef CONFIG_ASSEMBLY_MULA32
-/*
- * Compute (a*b)+c, where a, b, c are 32-bit integers, and the result is
- * 64-bit long.
- */
-uint64_t mula32(uint32_t a, uint32_t b, uint32_t c);
-#else
-static inline uint64_t mula32(uint32_t a, uint32_t b, uint32_t c)
-{
- uint64_t ret = a;
-
- ret *= b;
- ret += c;
-
- return ret;
-}
-#endif
-
#ifdef __cplusplus
}
#endif