Skip to content

Commit

Permalink
constant-fold 0xfe-0xb4
Browse files Browse the repository at this point in the history
  • Loading branch information
aqjune-aws committed Mar 5, 2024
1 parent 7ebcca7 commit af960be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions third_party/s2n-bignum/arm/curve25519/curve25519_x25519.S
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,12 @@ S2N_BN_SYMBOL(curve25519_x25519):
mov v31.d[0], x0
mov v31.d[1], xzr

mov x0, #67108863
mov x0, #67108863 // #(1<<26)-1
mov v30.d[0], x0
mov v30.d[1], x0

mov x0, #0x07fffffe07fffffe
sub x1, x0, #0xfe-0xb4
sub x1, x0, #74 // #0xfe-0xb4
sub x0, x0, #2

stp x0, x1, [mask1]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,12 +284,12 @@ S2N_BN_SYMBOL(curve25519_x25519_byte):
mov v31.d[0], x0
mov v31.d[1], xzr

mov x0, #67108863
mov x0, #67108863 // #(1<<26)-1
mov v30.d[0], x0
mov v30.d[1], x0

mov x0, #0x07fffffe07fffffe
sub x1, x0, #0xfe-0xb4
sub x1, x0, #74 // #0xfe-0xb4
sub x0, x0, #2

stp x0, x1, [mask1]
Expand Down

0 comments on commit af960be

Please sign in to comment.