Go to the documentation of this file.
9 #ifndef _LINUX_PROPORTIONS_H
10 #define _LINUX_PROPORTIONS_H
68 long *numerator,
long *denominator);
84 #if BITS_PER_LONG == 32
85 #define PROP_MAX_SHIFT (3*BITS_PER_LONG/4)
87 #define PROP_MAX_SHIFT (BITS_PER_LONG/2)
90 #define PROP_FRAC_SHIFT (BITS_PER_LONG - PROP_MAX_SHIFT - 1)
91 #define PROP_FRAC_BASE (1UL << PROP_FRAC_SHIFT)
116 #define INIT_PROP_LOCAL_SINGLE(name) \
117 { .lock = __RAW_SPIN_LOCK_UNLOCKED(name.lock), \
124 long *numerator,
long *denominator);