mirror of
https://github.com/cryb-to/cryb-to.git
synced 2024-11-14 01:35:40 +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) {
|
||||
MPI_FAST_INIT(X);
|
||||
} else {
|
||||
} else if (X->msb != 0) {
|
||||
memset(X->words, 0, X->size);
|
||||
X->neg = 0;
|
||||
X->msb = 0;
|
||||
|
|
Loading…
Reference in a new issue