Panther Search Documentation Tutorials Devlogs Downloads Source Code

Documentation > Panther Documentation > Intrinsics > @ctlz

@ctlz

Panther
Documentation


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

  Count the number of leading 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 leading zero bits of

Return Value

  Returns the number of leading zero bits

Example

(TODO)

See Also

@ctPop Count the number of one bits
@cttz Count the number of trailing zero bits