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

/freebsd-10.2-release/sys/netpfil/ipfw/
H A Ddn_sched_wf2q.c58 * and sum of weights, respectively. FRAC_BITS is the number of
59 * fractional bits. We want FRAC_BITS >> WMAX_BITS to avoid too large
60 * errors when computing the inverse, FRAC_BITS < 32 so we can do 1/w
62 * LMAX_BITS + WMAX_BITS + FRAC_BITS << 64
64 * FRAC_BITS = 26, LMAX_BITS=14, WMAX_BITS = 19
66 #ifndef FRAC_BITS
67 #define FRAC_BITS 28 /* shift for fixed point arithmetic */ macro
68 #define ONE_FP (1UL << FRAC_BITS)
H A Ddn_sched_qfq.c119 FRAC_BITS decimal bits.
126 [ MTU_SHIFT ][ FRAC_BITS ]
141 inv_w = (1<<FRAC_BITS)/w_i
176 #define IWSUM ((1<<FRAC_BITS)/QFQ_MAX_WSUM)
178 #define FRAC_BITS 30 /* fixed point arithmetic */ macro
179 #define ONE_FP (1UL << FRAC_BITS)
182 #define QFQ_MIN_SLOT_SHIFT (FRAC_BITS + QFQ_MTU_SHIFT - QFQ_MAX_INDEX)
798 grp->slot_shift = QFQ_MTU_SHIFT + FRAC_BITS -
/freebsd-10.2-release/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.2-release/sys/dev/patm/
H A Dif_patm_tx.c858 #define FRAC_BITS 16 macro
877 lair0 = DIFF_TO_FP(base) >> FRAC_BITS;

Completed in 104 milliseconds