Panther Search Documentation Tutorials Devlogs Downloads Source Code

Documentation > Panther Documentation > Intrinsics > @cttz

@cttz

Panther
Documentation


1: func @cttz = <{T: Type}> (arg: T) -> T;

  Count the number of trailing zero bits.

Template Parameters

  T: type of arguments and output - must be integral or a vector of integral

Parameters

  arg: value to count the number of trailing zero bits of

Return Value

  Returns the number of trailing zero bits

Example

(TODO)

See Also

@ctPop Count the number of one bits
@ctlz Count the number of leading zero bits