Home | History | Annotate | Download | only in linux

Lines Matching full:den

41 /* Suppose we want to devide two numbers NOM and DEN: NOM/DEN, the we can
43 * (NOM << LSH) / DEN
47 * - (NOM / DEN) fits in (32 - LSH) bits.
48 * - (NOM % DEN) fits in (32 - LSH) bits.
50 #define SH_DIV(NOM,DEN,LSH) ( (((NOM) / (DEN)) << (LSH)) \
51 + ((((NOM) % (DEN)) << (LSH)) + (DEN) / 2) / (DEN))