MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / divmod

Method divmod

plugin/common/kernels/reducedMathPlugin.h:82–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80 return x - (div(x) * y);
81 }
82 __host__ __device__ __forceinline__ void divmod(int32_t x, int32_t& q, int32_t& mod) const
83 {
84 q = div(x);
85 mod = x - (q * y);
86 }
87 __host__ __device__ __forceinline__ int32_t get() const
88 {
89 return y;

Callers

nothing calls this directly

Calls 1

divFunction · 0.85

Tested by

no test coverage detected