Searched refs:fracbits (Results 1 – 3 of 3) sorted by relevance
61 int fracbits; /* the number of bits of rbps that comprise the fractional part */ in local__compute_rbps_integerized() local76 fracbits = (8*sizeof(err)) - (FLAC__bitmath_ilog2(err)+1); in local__compute_rbps_integerized()78 err <<= fracbits; in local__compute_rbps_integerized()90 fracbits -= (int)(bits-16); in local__compute_rbps_integerized()96 fracbits += 16; in local__compute_rbps_integerized()97 FLAC__ASSERT(fracbits >= 0); in local__compute_rbps_integerized()101 const int f = fracbits & 3; in local__compute_rbps_integerized()104 fracbits -= f; in local__compute_rbps_integerized()108 rbps = FLAC__fixedpoint_log2(rbps, fracbits, (uint32_t)(-1)); in local__compute_rbps_integerized()124 FLAC__ASSERT((int)FLAC__bitmath_ilog2(rbps)+1 <= fracbits + 6); in local__compute_rbps_integerized()[all …]
269 FLAC__uint32 FLAC__fixedpoint_log2(FLAC__uint32 x, uint32_t fracbits, uint32_t precision) in FLAC__fixedpoint_log2() argument271 const FLAC__uint32 ONE = (1u << fracbits); in FLAC__fixedpoint_log2()272 const FLAC__uint32 *table = log2_lookup[fracbits >> 2]; in FLAC__fixedpoint_log2()274 FLAC__ASSERT(fracbits < 32); in FLAC__fixedpoint_log2()275 FLAC__ASSERT((fracbits & 0x3) == 0); in FLAC__fixedpoint_log2()
91 FLAC__uint32 FLAC__fixedpoint_log2(FLAC__uint32 x, uint32_t fracbits, uint32_t precision);