Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/cutlass
/ abs_for_integer
Function
abs_for_integer
include/cutlass/fast_math.h:158–162 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
156
157
template <typename value_t>
158
CUTLASS_HOST_DEVICE
159
CUTLASS_CONSTEXPR_IF_CXX17
160
value_t abs_for_integer(value_t a) {
161
return ((a > value_t{0}) ? a : -a);
162
}
163
/**
164
* Greatest common divisor
165
*/
Callers
4
gcd
Function · 0.85
lcm
Function · 0.85
gcd_cxx11
Function · 0.85
lcm_cxx11
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected