return the base 2 logarithm of the parameter
genType log2(genType x)
x
: Specify the value of which to take the base 2 logarithm.log2
returns the base 2 logarithm of x
. i.e., the value 𝑦 which satisfies
$$
x = 2^{y}
$$
Results are undefined if x
≤ 0.