scalar_countleading0
Description
Counts the number of consecutive bits whose values are 0 in the 64-bit binary format of the source operand.
Prototype
scalar_countleading0(dst, src)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
dst |
Output |
A Scalar of type uint64, for the destination operand |
src |
Input |
A Scalar of type uint64 or an immediate of type uint64, for the source operand |
Applicability
Returns
None
Example
from tbe import tik tik_instance = tik.Tik() src_scalar = tik_instance.Scalar(dtype="uint64") src_scalar.set_as(4) dst_scalar = tik_instance.Scalar(dtype="uint64") # dst_scalar=61 tik_instance.scalar_countleading0(dst_scalar, src_scalar) tik_instance.BuildCCE(kernel_name="scalar_countleading0", inputs=[], outputs=[])
Parent topic: Single Operand