mirror of
https://github.com/cryb-to/cryb-to.git
synced 2025-01-03 02:11:10 +00:00
In mpi_zero(), save a memset() if the target is already zero.
This commit is contained in:
parent
1412dac680
commit
98c6349d4a
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ mpi_zero(cryb_mpi *X)
|
||||||
|
|
||||||
if (X->words == NULL) {
|
if (X->words == NULL) {
|
||||||
MPI_FAST_INIT(X);
|
MPI_FAST_INIT(X);
|
||||||
} else {
|
} else if (X->msb != 0) {
|
||||||
memset(X->words, 0, X->size);
|
memset(X->words, 0, X->size);
|
||||||
X->neg = 0;
|
X->neg = 0;
|
||||||
X->msb = 0;
|
X->msb = 0;
|
||||||
|
|
Loading…
Reference in a new issue