26 constexpr uint64_t NUM_BITS_IN_TWO_LIMBS = 2 * NUM_LIMB_BITS;
27 constexpr uint64_t UPPER_TWO_LIMB_BITS = TOTAL_BITS - NUM_BITS_IN_TWO_LIMBS;
30 constexpr uint256_t LIMB_MASK = shift - 1;
38 builder.create_range_constraint(low.witness_index, NUM_BITS_IN_TWO_LIMBS,
"create_range_constraint");
39 builder.create_range_constraint(hi.witness_index, UPPER_TWO_LIMB_BITS,
"create_range_constraint");
43 auto sum = low + hi * shift;
47 return convert_from_bn254_frs<Builder, fq<Builder>>(
builder, fr_vec);