math.log2

FLOATmath.log2FLOATx

Available inall subroutines.

Computes the base 2 logarithm of the input x.

Example

vcl_deliver {
declare local var.foo FLOAT;
set var.foo = math.log2(4294967296); # result: 32.0
}