mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-03 22:33:06 +00:00
Use bits_u64
This commit is contained in:
parent
78f71672a3
commit
b438760f72
@ -161,7 +161,7 @@ pub trait Field:
|
||||
let mut current = *self;
|
||||
let mut product = Self::ONE;
|
||||
|
||||
for j in 0..64 {
|
||||
for j in 0..bits_u64(power) {
|
||||
if (power >> j & 1) != 0 {
|
||||
product *= current;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user