Language:
Discover
By Skill Level
By Category

FGenericPlatformMath::CountLeadingZeros

Choose your OS:

Syntax

static uint32 CountLeadingZeros
(
    uint32 Value
)

Remarks

Counts the number of leading zeros in the bit representation of the value

the number of zeros before the first "on" bit

Returns

the number of zeros before the first "on" bit

Parameters

Parameter

Description

Value

the value to determine the number of leading zeros for

References

Module

Core

Header

Runtime/Core/Public/GenericPlatform/GenericPlatformMath.h