Searched defs:logx (Results 1 - 1 of 1) sorted by relevance

/illumos-gate/usr/src/uts/sun4v/io/n2rng/
H A Dn2rng_entp_algs.c115 uint64_t logx; local
124 * Invariant: log2(xx) + logx == log2(x). This is true at the after
128 * equals log2(2^i/(2^i-1)), to logx. By induction the invariant is
130 * logx=log2(x);
139 logx = (int64_t)(i - LOG_ARG_SCALE) << LOG_VAL_SCALE;
147 logx += (logtable[i-1] +
153 return (logx);

Completed in 202 milliseconds