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

Method FastMathSafeNaN

src/ffi/extra/json_parser.cc:328–339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326 }
327
328 static double FastMathSafeNaN() {
329#ifdef __FAST_MATH__
330 union {
331 uint64_t from;
332 double to;
333 } u;
334 u.from = 0x7FF8000000000000ULL; // write "from", read "to"
335 return u.to;
336#else
337 return std::numeric_limits<double>::quiet_NaN();
338#endif
339 }
340
341 // Full string parsing with escape and unicode handling
342 bool NextStringWithFullHandling(Any* out, const char* start_pos) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected