Language:
Discover
By Skill Level
By Category

FGenericPlatformMath::CountLeadingZeros64

Choose your OS:

Syntax

static uint64 CountLeadingZeros64
(
    uint64 Value
)

Remarks

Counts the number of leading zeros in the bit representation of the 64-bit 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