right_shift_tile
-
void ckernel::right_shift_tile_init()
-
Please refer to documentation for any_init.
-
template<DataFormat data_format>
void ckernel::right_shift_tile(uint32_t idst, uint32_t param0)
-
Performs element-wise (arithmetic) right_shift computation on input x by param0 bits, where x is each element of a tile in DST register at index idst. The input must be of integer data type: Int32, UInt32, or UInt16. The shift is arithmetic: the sign bit is replicated into the vacated high bits (negative inputs shift in 1s). The DST register buffer must be in acquired state via acquire_dst call. This call is blocking and is only available on the compute engine.
A shift amount outside [0, 31] produces 0 for non-negative inputs and -1 for negative inputs.
Return value: None
Argument
Description
Type
Valid Range
Required
idst
The index of the tile in DST register buffer to perform the computation on
uint32_t
Must be less than the size of the DST register buffer
True
param0
The number of bits to shift the input by
uint32_t
True