MicrOS
log2f.c File Reference
#include "../math.h"

Functions

float log2f (float x)
 Compute 2 based logarithm. More...
 

Function Documentation

◆ log2f()

float log2f ( float  x)

Compute 2 based logarithm.

The log2f functions compute the base-2 logarithm of x. A domain error occurs if the argument is less than zero. A pole error may occur if the argument is zero.

Parameters
xValue whose logarithm is calculated.
Returns
The log2f functions return log_2 x.