log2

Description

The log2 function returns the base-2 log of x , log2( x ).

errno: EDOM, for x < 0

errno: ERANGE, for x = 0

Calling Interface

float log2f(float x);

For more complete information about compiler optimizations, see our Optimization Notice.