diff options
author | Craig Hesling <hesling@chromium.org> | 2022-09-17 01:20:30 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-09-27 20:09:50 +0000 |
commit | 9e579e7a93b5a7c6290174659b2101488369c30e (patch) | |
tree | 86b0a4bfcdcfe0dc91195637fe6acfc33cf80137 /board/voxel_ecmodeentry | |
parent | f20e37edf6fb679fb7c9752aac9b8f7c557cd0ad (diff) | |
download | chrome-ec-9e579e7a93b5a7c6290174659b2101488369c30e.tar.gz |
test: Add tests for always_memset
Note that GCC can enable optimization per function using the
optimize("O3") attribute, but clang cannot. So, we need to enable
optimization in the build system per file.
If we want to look for alternatives to always_memset,
checkout libsodium's sodium_memzero function in the
sodium/utils.c file of commit c281249fd8f2d00c9a76e4686f95ff4783951040.
BRANCH=none
BUG=b:176500425
TEST=make run-always_memset V=1
TEST=CC=clang make run-always_memset V=1
Change-Id: I57ec10a558fe294587d9b777a558b80d30b9ec28
Signed-off-by: Craig Hesling <hesling@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3902571
Reviewed-by: Tom Hughes <tomhughes@chromium.org>
Reviewed-by: Andrea Grandi <agrandi@google.com>
Diffstat (limited to 'board/voxel_ecmodeentry')
0 files changed, 0 insertions, 0 deletions