Skip to content

Commit

Permalink
fix: num_limbs_log2_ceil in FpChip
Browse files Browse the repository at this point in the history
  • Loading branch information
enricobottazzi committed Feb 2, 2024
1 parent d76f1a1 commit 441cb19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions halo2-ecc/src/fields/fp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use crate::bigint::{
};
use crate::halo2_proofs::halo2curves::CurveAffine;
use halo2_base::gates::RangeChip;
use halo2_base::utils::{BigPrimeField, ScalarField};
use halo2_base::utils::{log2_ceil, BigPrimeField, ScalarField};
use halo2_base::{
gates::{range::RangeConfig, GateInstructions, RangeInstructions},
utils::{bigint_to_fe, biguint_to_fe, bit_length, decompose_biguint, fe_to_biguint, modulus},
Expand Down Expand Up @@ -91,7 +91,7 @@ impl<'range, F: BigPrimeField, Fp: BigPrimeField> FpChip<'range, F, Fp> {
limb_bits,
num_limbs,
num_limbs_bits: bit_length(num_limbs as u64),
num_limbs_log2_ceil: num_limbs_log2_ceil(num_limbs),
num_limbs_log2_ceil: log2_ceil(num_limbs as u64),
limb_bases,
limb_base_big: BigInt::one() << limb_bits,
limb_mask,
Expand Down

0 comments on commit 441cb19

Please sign in to comment.