Lines Matching refs:LOG_VAL_SCALE
75 * lg2 computes 2^(LOG_VAL_SCALE) * log2(x/2^LOG_ARG_SCALE), where ^
78 * The following conditions must be satisfied: LOG_VAL_SCALE <= 62,
79 * LOG_VAL_SCALE + log2(maxarg) < 64, LOG_VAL_SCALE >= 0,
80 * LOG_ARG_SCALE <= 63. Recommended LOG_VAL_SCALE is 57, which is the
139 logx = (int64_t)(i - LOG_ARG_SCALE) << LOG_VAL_SCALE;
146 /* 1ULL << (63 - LOG_VAL_SCALE -1) is rounding */
148 (1ULL << (63 - LOG_VAL_SCALE - 1))) >>
149 (63 - LOG_VAL_SCALE);
225 * 2^LOG_VAL_SCALE). The samples array is modified by sorting in
256 LOG_VAL_SCALE))) >> lg2samples;
272 ((int64_t)(LOG_ARG_SCALE - lg2samples) << LOG_VAL_SCALE))) >>
282 ((int64_t)(LOG_ARG_SCALE - 2 * lg2samples) << LOG_VAL_SCALE)) / 64;
285 ((int64_t)(LOG_ARG_SCALE - lg2samples) << LOG_VAL_SCALE)) / 64;