MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / wrap_around

Function wrap_around

arm_compute/core/Helpers.h:281–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279 */
280template <typename T>
281inline T wrap_around(T x, T m)
282{
283 return x >= 0 ? x % m : (x % m + m) % m;
284}
285
286/** Convert negative coordinates to positive in the range [0, num_dims_input]
287 *

Callers 15

Helpers.hFile · 0.85
configureMethod · 0.85
validate_argumentsFunction · 0.85
configureMethod · 0.85
validate_argumentsFunction · 0.85
configureMethod · 0.85
validate_argumentsFunction · 0.85
configureMethod · 0.85
configureMethod · 0.85
validateMethod · 0.85
configureMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected