Use bits_u64

This commit is contained in:
wborgeaud 2021-05-19 20:22:20 +02:00
parent 78f71672a3
commit b438760f72

View File

@ -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;
}