MCPcopy Create free account
hub / github.com/VCVRack/Rack / isOdd

Function isOdd

include/math.hpp:25–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23/** Returns true if `x` is odd. */
24template <typename T>
25bool isOdd(T x) {
26 return x % 2 != 0;
27}
28
29/** Limits `x` between `a` and `b`.
30If `b < a`, returns a.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected