FGenericPlatformMath::CountTrailingZeros64

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

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

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

Include

#include "GenericPlatform/GenericPlatformMath.h"

Syntax

static uint64 CountTrailingZeros64
(
    uint64 Value
)

Remarks

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

Returns

the number of zeros after the last "on" bit

Parameters

Parameter

Description

Value

the value to determine the number of trailing zeros for