cuda::experimental::stf::operator~
#
-
inline hw_scope cuda::experimental::stf::operator~(const hw_scope &s)#
Bitwise NOT operator for inverting a
hw_scope
value.This function performs a bitwise NOT operation on the underlying type of a
hw_scope
value. It is useful for computing the complement of a given scope, ensuring that only valid bits within the range ofhw_scope::all
are set in the result.Note
The function includes an assertion to ensure that s is within the allowed range. Any bits beyond those represented by
hw_scope::all
are cleared in the result.- Parameters:
s – The hw_scope value to invert.
- Returns:
A new hw_scope representing the bitwise complement of s, masked to valid bits.