Panther Search Documentation Tutorials Devlogs Downloads Source Code

Documentation > Panther Documentation > Intrinsics > @ctPop

@ctPop

Panther
Documentation


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

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

Return Value

  Returns the number of one bits

Example

(TODO)

See Also

@ctlz Count the number of leading zero bits
@cttz Count the number of trailing zero bits