Lines Matching refs:nbits
104 bp_pack_value (struct bitpack_d *bp, bitpack_word_t val, unsigned nbits)
110 gcc_checking_assert (nbits == BITS_PER_BITPACK_WORD
111 || !(val & ~(((bitpack_word_t)1<<nbits)-1)));
115 if (pos + nbits > BITS_PER_BITPACK_WORD)
120 pos = nbits;
125 pos += nbits;
136 unsigned nbits)
139 bp_pack_value (bp, val.coeffs[i], nbits);
165 bp_unpack_value (struct bitpack_d *bp, unsigned nbits)
170 mask = (nbits == BITS_PER_BITPACK_WORD
172 : ((bitpack_word_t) 1 << nbits) - 1);
174 /* If there are not continuous nbits in the current bitpack word
176 if (pos + nbits > BITS_PER_BITPACK_WORD)
180 bp->pos = nbits;
185 bp->pos = pos + nbits;
193 bp_unpack_poly_value (struct bitpack_d *bp, unsigned nbits)
197 x.coeffs[i] = bp_unpack_value (bp, nbits);
280 int nbits = floor_log2 (range) + 1;
286 bp_pack_value (bp, val, nbits);
299 int nbits = floor_log2 (range) + 1;
300 HOST_WIDE_INT val = bp_unpack_value (bp, nbits);