Skip to content

Commit

Permalink
Merge pull request wolfSSL#6979 from SparkiDev/sp_arm64_noinline
Browse files Browse the repository at this point in the history
SP ARM64 P-256: mark functions as SP_NOINLINE
  • Loading branch information
JacobBarthelmeh authored Nov 21, 2023
2 parents 60909d5 + e97e1b5 commit dda72dc
Show file tree
Hide file tree
Showing 7 changed files with 124 additions and 105 deletions.
12 changes: 6 additions & 6 deletions wolfcrypt/src/sp_arm32.c
Original file line number Diff line number Diff line change
Expand Up @@ -71032,8 +71032,8 @@ static SP_NOINLINE void sp_256_mont_sqr_8(sp_digit* r_p, const sp_digit* a_p, co
* m Modulus (prime).
* mp Montgomery multiplier.
*/
static void sp_256_mont_sqr_n_8(sp_digit* r, const sp_digit* a, int n,
const sp_digit* m, sp_digit mp)
SP_NOINLINE static void sp_256_mont_sqr_n_8(sp_digit* r,
const sp_digit* a, int n, const sp_digit* m, sp_digit mp)
{
sp_256_mont_sqr_8(r, a, m, mp);
for (; n > 1; n--) {
Expand Down Expand Up @@ -89861,8 +89861,8 @@ SP_NOINLINE static void sp_384_mont_sqr_12(sp_digit* r, const sp_digit* a,
* m Modulus (prime).
* mp Montgomery multiplier.
*/
static void sp_384_mont_sqr_n_12(sp_digit* r, const sp_digit* a, int n,
const sp_digit* m, sp_digit mp)
SP_NOINLINE static void sp_384_mont_sqr_n_12(sp_digit* r,
const sp_digit* a, int n, const sp_digit* m, sp_digit mp)
{
sp_384_mont_sqr_12(r, a, m, mp);
for (; n > 1; n--) {
Expand Down Expand Up @@ -116850,8 +116850,8 @@ SP_NOINLINE static void sp_521_mont_sqr_17(sp_digit* r, const sp_digit* a,
* m Modulus (prime).
* mp Montgomery multiplier.
*/
static void sp_521_mont_sqr_n_17(sp_digit* r, const sp_digit* a, int n,
const sp_digit* m, sp_digit mp)
SP_NOINLINE static void sp_521_mont_sqr_n_17(sp_digit* r,
const sp_digit* a, int n, const sp_digit* m, sp_digit mp)
{
sp_521_mont_sqr_17(r, a, m, mp);
for (; n > 1; n--) {
Expand Down
Loading

0 comments on commit dda72dc

Please sign in to comment.