diff options
author | tb <> | 2023-05-09 05:38:11 +0000 |
---|---|---|
committer | tb <> | 2023-05-09 05:38:11 +0000 |
commit | d10ac5ed91efbdc49fc0b13ac24a411c020beaab (patch) | |
tree | 4c67696d92f153d2f2ab95413bb44eca0e41ae56 /src/lib/libc/stdlib/malloc.c | |
parent | eb5c4831ebe1fd7e22ce96c554a2521c81a1ea95 (diff) | |
download | openbsd-d10ac5ed91efbdc49fc0b13ac24a411c020beaab.tar.gz openbsd-d10ac5ed91efbdc49fc0b13ac24a411c020beaab.tar.bz2 openbsd-d10ac5ed91efbdc49fc0b13ac24a411c020beaab.zip |
bn_exp: also special case -1 modulus
Anything taken to the power of 0 is 1, and then reduced mod 1 or mod -1 it
will be 0. If "anything" includes 0 or not is a matter of convention, but
it should not depend on the sign of the modulus...
Reported by Guido Vranken
ok jsing (who had the same diff)
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions