MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / abs_diff

Function abs_diff

src/backend/cpu/kernel/fast.hpp:54–54  ·  view source on GitHub ↗

abs_diff() Returns absolute difference of x and y

Source from the content-addressed store, hash-verified

52// abs_diff()
53// Returns absolute difference of x and y
54inline int abs_diff(int x, int y) { return abs(x - y); }
55inline unsigned abs_diff(unsigned x, unsigned y) {
56 return (unsigned)abs((int)x - (int)y);
57}

Callers 1

locate_featuresFunction · 0.70

Calls 2

fabsFunction · 0.85
absFunction · 0.50

Tested by

no test coverage detected