MCPcopy Create free account
hub / github.com/NetSys/bess / absdiff

Function absdiff

core/utils/common.h:191–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189// Returns the absolute difference between `lhs` and `rhs`.
190template <typename T>
191T absdiff(const T &lhs, const T &rhs) {
192 return lhs > rhs ? lhs - rhs : rhs - lhs;
193}
194
195struct PairHasher {
196 template <typename T1, typename T2>

Callers 1

ProcessBatchMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected