MCPcopy Create free account
hub / github.com/DLTcollab/sse2neon / float_binary_eq

Function float_binary_eq

tests/ieee754.cpp:169–175  ·  view source on GitHub ↗

Binary comparison for floats (handles NaN, signed zero) */

Source from the content-addressed store, hash-verified

167
168/* Binary comparison for floats (handles NaN, signed zero) */
169__attribute__((unused)) static inline bool float_binary_eq(float a, float b)
170{
171 uint32_t ua, ub;
172 memcpy(&ua, &a, sizeof(ua));
173 memcpy(&ub, &b, sizeof(ub));
174 return ua == ub;
175}
176
177__attribute__((unused)) static inline bool double_binary_eq(double a, double b)
178{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected