Rename scalar_get_bits -> scalar_get_bits_limb32; return uint32_t

This commit is contained in:
Pieter Wuille
2024-04-07 10:02:02 -04:00
parent 6247f485b6
commit 5005abee60
9 changed files with 19 additions and 19 deletions

View File

@@ -189,7 +189,7 @@ static void secp256k1_ecmult_gen(const secp256k1_ecmult_gen_context *ctx, secp25
* bits[tooth] = d[(block*COMB_TEETH + tooth)*COMB_SPACING + comb_off]. */
uint32_t bits = 0, sign, abs, index, tooth;
for (tooth = 0; tooth < COMB_TEETH && bit_pos < 256; ++tooth) {
uint32_t bit = secp256k1_scalar_get_bits(&d, bit_pos, 1);
uint32_t bit = secp256k1_scalar_get_bits_limb32(&d, bit_pos, 1);
bits |= bit << tooth;
bit_pos += COMB_SPACING;
}