Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Never inline uECC_vli_add/sub/clear. #215

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions asm_arm.inc
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@

#if (uECC_OPTIMIZATION_LEVEL >= 2)

__attribute__((noinline))
uECC_VLI_API uECC_word_t uECC_vli_add(uECC_word_t *result,
const uECC_word_t *left,
const uECC_word_t *right,
Expand Down Expand Up @@ -97,6 +98,7 @@ uECC_VLI_API uECC_word_t uECC_vli_add(uECC_word_t *result,
}
#define asm_add 1

__attribute__((noinline))
uECC_VLI_API uECC_word_t uECC_vli_sub(uECC_word_t *result,
const uECC_word_t *left,
const uECC_word_t *right,
Expand Down
1 change: 1 addition & 0 deletions uECC.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ int uECC_curve_public_key_size(uECC_Curve curve) {
}

#if !asm_clear
__attribute__((noinline))
uECC_VLI_API void uECC_vli_clear(uECC_word_t *vli, wordcount_t num_words) {
wordcount_t i;
for (i = 0; i < num_words; ++i) {
Expand Down