Skip to content

Commit

Permalink
Merge pull request #118 from aqjune-aws/equiv-muls2
Browse files Browse the repository at this point in the history
Add bignum_mont{sqr,mul}_p256_neon for Arm
  • Loading branch information
jargh authored Apr 20, 2024
2 parents 91a2d19 + 0752997 commit 0a3b3f3
Show file tree
Hide file tree
Showing 27 changed files with 4,140 additions and 845 deletions.
2 changes: 2 additions & 0 deletions arm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,10 @@ BIGNUM_OBJ = curve25519/bignum_add_p25519.o \
p256/bignum_mod_p256_4.o \
p256/bignum_montmul_p256.o \
p256/bignum_montmul_p256_alt.o \
p256/bignum_montmul_p256_neon.o \
p256/bignum_montsqr_p256.o \
p256/bignum_montsqr_p256_alt.o \
p256/bignum_montsqr_p256_neon.o \
p256/bignum_mux_4.o \
p256/bignum_neg_p256.o \
p256/bignum_nonzero_4.o \
Expand Down
10 changes: 10 additions & 0 deletions arm/allowed_asm
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
: lsr$
: madd$
: mov$
: movi$
: movk$
: mul$
: mvn$
Expand All @@ -33,14 +34,23 @@
: ngcs$
: orr$
: ret$
: rev64$
: sbc$
: sbcs$
: shl$
: stp$
: str$
: strb$
: sub$
: subs$
: tst$
: uaddlp$
: umlal$
: umulh$
: umull$
: umull2$
: usra$
: uzp1$
: uzp2$
: xtn$
: $
2 changes: 2 additions & 0 deletions arm/p256/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ OBJ = bignum_add_p256.o \
bignum_mod_p256_4.o \
bignum_montmul_p256.o \
bignum_montmul_p256_alt.o \
bignum_montmul_p256_neon.o \
bignum_montsqr_p256.o \
bignum_montsqr_p256_alt.o \
bignum_montsqr_p256_neon.o \
bignum_mux_4.o \
bignum_neg_p256.o \
bignum_nonzero_4.o \
Expand Down
Loading

0 comments on commit 0a3b3f3

Please sign in to comment.