INNER CODE UNIT · C
y
AmigaPorts/ACE · src/fixmath/fix16_exp.c:111
fix16_t y = (x >> 1) + (x & 1);
return y;
#endif
}
/**
* This assumes that the input value is >= 1.
*
* Note that this is only ever called with inValue >= 1 (because it has a wrapper to check.
* As such, the result is always less than the input.
*/
static fix16_t fix16__log2_inner(fix16_t x)
{
fix16_t result = 0;
while(x >= fix16_from_int(2))
{
result++;