FGenericPlatformMath::FloorLog2_64

Computes the base 2 logarithm for a 64-bit value that is greater than 0.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMath.h

Include

#include "GenericPlatform/GenericPlatformMath.h"

Syntax

static uint64 FloorLog2_64
(
    uint64 Value
)

Remarks

Computes the base 2 logarithm for a 64-bit value that is greater than 0. The result is rounded down to the nearest integer.

Returns

Log2 of Value. 0 if Value is 0.

Parameters

Parameter

Description

Value

The value to compute the log of

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss