MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / IsFloatTheSameAs

Function IsFloatTheSameAs

native/thirdpart/flatbuffers/flatbuffers.h:40–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 defined(FLATBUFFERS_HAS_NEW_STRTOD) && (FLATBUFFERS_HAS_NEW_STRTOD > 0)
39// Like `operator==(e, def)` with weak NaN if T=(float|double).
40template<typename T> inline bool IsFloatTheSameAs(T e, T def) {
41 return (e == def) || ((def != def) && (e != e));
42}
43template<> inline bool IsTheSameAs<float>(float e, float def) {
44 return IsFloatTheSameAs(e, def);
45}

Callers 2

IsTheSameAs<float>Function · 0.85
IsTheSameAs<double>Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected