Searched refs:fracbits (Results 1 – 4 of 4) sorted by relevance
/external/opencv3/3rdparty/libjasper/jasper/ |
D | jas_fix.h | 93 #define JAS_FIX_ZERO(fix_t, fracbits) \ argument 97 #define JAS_FIX_ONE(fix_t, fracbits) \ argument 98 (JAS_CAST(fix_t, 1) << (fracbits)) 101 #define JAS_FIX_HALF(fix_t, fracbits) \ argument 102 (JAS_CAST(fix_t, 1) << ((fracbits) - 1)) 109 #define JAS_INTTOFIX(fix_t, fracbits, x) \ argument 110 JAS_CAST(fix_t, (x) << (fracbits)) 113 #define JAS_FIXTOINT(fix_t, fracbits, x) \ argument 114 JAS_CAST(int, (x) >> (fracbits)) 117 #define JAS_FIXTODBL(fix_t, fracbits, x) \ argument [all …]
|
/external/flac/libFLAC/ |
D | fixed.c | 61 int fracbits; /* the number of bits of rbps that comprise the fractional part */ in local__compute_rbps_integerized() local 76 fracbits = (8*sizeof(err)) - (FLAC__bitmath_ilog2(err)+1); in local__compute_rbps_integerized() 78 err <<= fracbits; in local__compute_rbps_integerized() 90 fracbits -= (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, (unsigned)(-1)); in local__compute_rbps_integerized() 124 FLAC__ASSERT((int)FLAC__bitmath_ilog2(rbps)+1 <= fracbits + 6); in local__compute_rbps_integerized() [all …]
|
D | float.c | 269 FLAC__uint32 FLAC__fixedpoint_log2(FLAC__uint32 x, unsigned fracbits, unsigned precision) in FLAC__fixedpoint_log2() argument 271 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()
|
/external/flac/libFLAC/include/private/ |
D | float.h | 94 FLAC__uint32 FLAC__fixedpoint_log2(FLAC__uint32 x, unsigned fracbits, unsigned precision);
|