scalar_countbit0

Description

Counts the number of bits whose values are 0 in the 64-bit binary format of the source operand bitwise.

Prototype

scalar_countbit0(dst, src)

Parameters

Table 1 Parameter description

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

Atlas 200/300/500 Inference Product

Atlas Training Series Product

Restrictions

None

Returns

None

Example

from tbe import tik
tik_instance = tik.Tik()
src_scalar = tik_instance.Scalar(dtype="uint64")
src_scalar.set_as(3)
dst_scalar = tik_instance.Scalar(dtype="uint64")
# dst_scalar = 62
tik_instance.scalar_countbit0(dst_scalar, src_scalar)   
tik_instance.BuildCCE(kernel_name="run_scalar_countbit0", inputs=[], outputs=[])