Skip to content

Commit

Permalink
Update suggestion constantine/math/config/precompute.nim
Browse files Browse the repository at this point in the history
  • Loading branch information
mratsim authored Sep 23, 2023
1 parent 089fe41 commit 990651f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion constantine/math/config/precompute.nim
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ func primeMinus1div2*(P: BigInt): BigInt =
## Warning ⚠️: Result is in the canonical domain (not Montgomery)

result = P
discard result.sub(1)
# discard result.sub(1) # right-shifting automatically implies "-1" for odd numbers (which all prime >2 are).
result.shiftRight(1)

func primeMinus3div4_BE*[bits: static int](
Expand Down

0 comments on commit 990651f

Please sign in to comment.