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

Function normalizeZero

include/math.hpp:120–126  ·  view source on GitHub ↗

Clang doesn't support disabling individual optimizations, just everything.

Source from the content-addressed store, hash-verified

118#if defined __clang__
119// Clang doesn't support disabling individual optimizations, just everything.
120__attribute__((optnone))
121#else
122__attribute__((optimize("signed-zeros")))
123#endif
124inline float normalizeZero(float x) {
125 return x + 0.f;
126}
127
128/** Euclidean modulus. Always returns `0 <= mod < b`.
129See https://en.wikipedia.org/wiki/Euclidean_division.

Callers 2

getDisplayValueStringMethod · 0.85
stepMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected