MCPcopy Create free account
hub / github.com/numpy/numpy / Dragon4_PrintFloat_Intel_extended128

Function Dragon4_PrintFloat_Intel_extended128

numpy/core/src/multiarray/dragon4.c:2689–2702  ·  view source on GitHub ↗

Intel's 80-bit IEEE extended precision format, 128-bit storage */

Source from the content-addressed store, hash-verified

2687#ifdef HAVE_LDOUBLE_INTEL_EXTENDED_16_BYTES_LE
2688/* Intel's 80-bit IEEE extended precision format, 128-bit storage */
2689static npy_uint32
2690Dragon4_PrintFloat_Intel_extended128(
2691 Dragon4_Scratch *scratch, npy_float128 *value, Dragon4_Options *opt)
2692{
2693 FloatVal128 val128;
2694 FloatUnion128 buf128;
2695
2696 buf128.floatingPoint = *value;
2697 /* Intel is little-endian */
2698 val128.lo = buf128.integer.a;
2699 val128.hi = buf128.integer.b;
2700
2701 return Dragon4_PrintFloat_Intel_extended(scratch, val128, opt);
2702}
2703#endif /* HAVE_LDOUBLE_INTEL_EXTENDED_16_BYTES_LE */
2704
2705#if defined(HAVE_LDOUBLE_IEEE_QUAD_LE) || defined(HAVE_LDOUBLE_IEEE_QUAD_BE)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected