Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FGenericPlatformMath
Description
Computes the base 2 logarithm for an integer value. The result is rounded down to the nearest integer.
| Name | FloorLog2 |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMath.h |
| Include Path | #include "GenericPlatform/GenericPlatformMath.h" |
static uint32 FloorLog2
(
uint32 Value
)
Log2 of Value. 0 if Value is 0.
Parameters
| Name | Remarks |
|---|---|
| Value | The value to compute the log of |