MCPcopy Create free account
hub / github.com/MegEngine/MegCC / good_float

Function good_float

compiler/test/kernel/common/src/checker.cpp:98–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96 return x.as_int8() - y.as_int8();
97}
98static inline bool good_float(float val) {
99 return std::isfinite(val);
100}
101
102static inline bool good_float(int) {
103 return true;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected