mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-12 04:42:36 -03:00
Removed short-circuit evaluation potential.
This commit is contained in:
parent
39e40a4089
commit
d41220b301
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ void FieldElem::Normalize() {
|
|||
n[0] = t0; n[1] = t1; n[2] = t2; n[3] = t3; n[4] = t4;
|
||||
|
||||
// Subtract p if result >= p
|
||||
uint64_t mask = (uint64_t)~(-(int64_t)(n[4] == 0xFFFFFFFFFFFFULL && n[3] == 0xFFFFFFFFFFFFFULL && n[2] == 0xFFFFFFFFFFFFFULL && n[1] == 0xFFFFFFFFFFFFFULL && n[0] >= 0xFFFFEFFFFFC2FULL));
|
||||
uint64_t mask = -(int64_t)((n[4] < 0xFFFFFFFFFFFFULL) | (n[3] < 0xFFFFFFFFFFFFFULL) | (n[2] < 0xFFFFFFFFFFFFFULL) | (n[1] < 0xFFFFFFFFFFFFFULL) | (n[0] < 0xFFFFEFFFFFC2FULL));
|
||||
n[4] &= mask;
|
||||
n[3] &= mask;
|
||||
n[2] &= mask;
|
||||
|
|
Loading…
Reference in a new issue