Searched refs:FRAC_BITS (Results 1 - 4 of 4) sorted by relevance

/freebsd-10-stable/sys/netpfil/ipfw/
H A Ddn_sched_wf2q.c64 * and sum of weights, respectively. FRAC_BITS is the number of
65 * fractional bits. We want FRAC_BITS >> WMAX_BITS to avoid too large
66 * errors when computing the inverse, FRAC_BITS < 32 so we can do 1/w
68 * LMAX_BITS + WMAX_BITS + FRAC_BITS << 64
70 * FRAC_BITS = 26, LMAX_BITS=14, WMAX_BITS = 19
72 #ifndef FRAC_BITS
73 #define FRAC_BITS 28 /* shift for fixed point arithmetic */ macro
74 #define ONE_FP (1UL << FRAC_BITS)
H A Ddn_sched_qfq.c125 FRAC_BITS decimal bits.
132 [ MTU_SHIFT ][ FRAC_BITS ]
147 inv_w = (1<<FRAC_BITS)/w_i
182 #define IWSUM ((1<<FRAC_BITS)/QFQ_MAX_WSUM)
184 #define FRAC_BITS 30 /* fixed point arithmetic */ macro
185 #define ONE_FP (1UL << FRAC_BITS)
188 #define QFQ_MIN_SLOT_SHIFT (FRAC_BITS + QFQ_MTU_SHIFT - QFQ_MAX_INDEX)
804 grp->slot_shift = QFQ_MTU_SHIFT + FRAC_BITS -
/freebsd-10-stable/sys/dev/drm2/radeon/
H A Dradeon_legacy_tv.c68 #define FRAC_BITS 0xe macro
625 tmp |= (vert_space * (1 << FRAC_BITS) / 10000);
655 tv_y_saw_tooth_cntl = (vert_space * SLOPE_value[i] * (1 << (FRAC_BITS - 1)) +
657 (1 << (FRAC_BITS - 1)) / 8) << 16);
660 RADEON_Y_FALL_PING_PONG | (272 * SLOPE_value[i] / 8) * (1 << (FRAC_BITS - 1)) /
663 (flicker_removal * 1024 - 272) * SLOPE_value[i] / 8 * (1 << (FRAC_BITS - 1)) / 1024;
/freebsd-10-stable/sys/dev/patm/
H A Dif_patm_tx.c858 #define FRAC_BITS 16 macro
877 lair0 = DIFF_TO_FP(base) >> FRAC_BITS;

Completed in 198 milliseconds