FGenericPlatformMath::CountTrailingZeros

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 uint32 CountTrailingZeros
(
    uint32 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