MCPcopy 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
157template <typename value_t>
158CUTLASS_HOST_DEVICE
159CUTLASS_CONSTEXPR_IF_CXX17
160value_t abs_for_integer(value_t a) {
161 return ((a > value_t{0}) ? a : -a);
162}
163/**
164 * Greatest common divisor
165 */

Callers 4

gcdFunction · 0.85
lcmFunction · 0.85
gcd_cxx11Function · 0.85
lcm_cxx11Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected