Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


lzcnt

Returns the componentwise number of leading zeros in the binary representations of an int vector.
Read time 2 minutesLast updated 10 days ago

Definition

lzcnt(int)

Returns the componentwise number of leading zeros in the binary representations of an int vector.
public static int lzcnt(int x)

Parameters

Input value.

Returns

Type

Description

intThe number of leading zeros of the input.

lzcnt(int2)

Returns the componentwise number of leading zeros in the binary representations of an int2 vector.
public static int2 lzcnt(int2 x)

Parameters

Input value.

Returns

Type

Description

int2The componentwise number of leading zeros of the input.

lzcnt(int3)

Returns the componentwise number of leading zeros in the binary representations of an int3 vector.
public static int3 lzcnt(int3 x)

Parameters

Input value.

Returns

Type

Description

int3The componentwise number of leading zeros of the input.

lzcnt(int4)

Returns the componentwise number of leading zeros in the binary representations of an int4 vector.
public static int4 lzcnt(int4 x)

Parameters

Input value.

Returns

Type

Description

int4The componentwise number of leading zeros of the input.

lzcnt(uint)

Returns number of leading zeros in the binary representations of a uint value.
public static int lzcnt(uint x)

Parameters

Input value.

Returns

Type

Description

intThe number of leading zeros of the input.

lzcnt(uint2)

Returns the componentwise number of leading zeros in the binary representations of a uint2 vector.
public static int2 lzcnt(uint2 x)

Parameters

Input value.

Returns

Type

Description

int2The componentwise number of leading zeros of the input.

lzcnt(uint3)

Returns the componentwise number of leading zeros in the binary representations of a uint3 vector.
public static int3 lzcnt(uint3 x)

Parameters

Input value.

Returns

Type

Description

int3The componentwise number of leading zeros of the input.

lzcnt(uint4)

Returns the componentwise number of leading zeros in the binary representations of a uint4 vector.
public static int4 lzcnt(uint4 x)

Parameters

Input value.

Returns

Type

Description

int4The componentwise number of leading zeros of the input.

lzcnt(long)

Returns number of leading zeros in the binary representations of a long value.
public static int lzcnt(long x)

Parameters

Input value.

Returns

Type

Description

intThe number of leading zeros of the input.

lzcnt(ulong)

Returns number of leading zeros in the binary representations of a ulong value.
public static int lzcnt(ulong x)

Parameters

Input value.

Returns

Type

Description

intThe number of leading zeros of the input.