MCPcopy Create free account
hub / github.com/apache/tvm-ffi / FastMathSafeNegInf

Method FastMathSafeNegInf

src/ffi/extra/json_parser.cc:315–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313 }
314
315 static double FastMathSafeNegInf() {
316#ifdef __FAST_MATH__
317 union {
318 uint64_t from;
319 double to;
320 } u;
321 u.from = 0xFFF0000000000000ULL; // write "from", read "to"
322 return u.to;
323#else
324 return -std::numeric_limits<double>::infinity();
325#endif
326 }
327
328 static double FastMathSafeNaN() {
329#ifdef __FAST_MATH__

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected