An ACS library for ZDoom-based ports
fixed ilogb(fixed base, int x)
Returns an arbitrary-base logarithm of x.
For a version with a fixed-point x, see logb.