Lines Matching refs:radix

216 /* this returns the radix ${radix} mantissa and exponent of an in-range ${builtin_type}.
217 the mantissa is either zero, or in the range [1,${radix}): */
218 ${builtin_type} tme_float_radix${radix}_mantissa_exponent_${_builtin_type} _TME_P((${builtin_type},…
220 /* this scales a value by adding n to its radix ${radix} exponent: */
221 ${builtin_type} tme_float_radix${radix}_scale_${_builtin_type} _TME_P((${builtin_type}, tme_int32_t…
235 …echo "/* a series of ${builtin_type} values of the form ${radix}^${sign}x, where x is a power of t…
236 …echo "static const ${builtin_type} _tme_float_radix${radix}_exponent_bits_${_builtin_type}_${_sign…
246 case ${radix} in
250 echo "$PROG internal error: can't handle radix ${radix}" 1>&2
309 echo " /* ${radix}^${sign}${exponent}: */"
317 x=`expr ${x} / ${radix}`
340 /* this returns the radix ${radix} mantissa and exponent of an in-range ${builtin_type}.
341 the mantissa is either zero, or in the range [1,${radix}): */
343 tme_float_radix${radix}_mantissa_exponent_${_builtin_type}(${builtin_type} value, tme_int32_t *_exp…
366 exponent_bit = TME_ARRAY_ELS(_tme_float_radix${radix}_exponent_bits_${_builtin_type}_neg) - 1;
369 /* if value is less than or equal to ${radix}^-(2^exponent_bit),
370 divide value by ${radix}^-(2^exponent_bit), and subtract 2^exponent_bit
372 if (value <= _tme_float_radix${radix}_exponent_bits_${_builtin_type}_neg[exponent_bit]
374 value /= _tme_float_radix${radix}_exponent_bits_${_builtin_type}_neg[exponent_bit];
384 /* while the value is greater than or equal to ${radix}: */
385 exponent_bit = TME_ARRAY_ELS(_tme_float_radix${radix}_exponent_bits_${_builtin_type}_pos) - 1;
386 for (; value >= ${radix}; ) {
388 /* if value is greater than or equal to ${radix}^(2^exponent_bit),
389 divide value by ${radix}^(2^exponent_bit), and add 2^exponent_bit
391 if (value >= _tme_float_radix${radix}_exponent_bits_${_builtin_type}_pos[exponent_bit]
393 value /= _tme_float_radix${radix}_exponent_bits_${_builtin_type}_pos[exponent_bit];
410 tme_float_radix${radix}_scale_${_builtin_type}(${builtin_type} value, tme_int32_t _n)
416 exponent_bit = TME_ARRAY_ELS(_tme_float_radix${radix}_exponent_bits_${_builtin_type}_pos) - 1;
424 value /= _tme_float_radix${radix}_exponent_bits_${_builtin_type}_pos[exponent_bit];
438 value *= _tme_float_radix${radix}_exponent_bits_${_builtin_type}_pos[exponent_bit];