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

Function Dragon4_PrintFloat_Intel_extended96

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

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

Source from the content-addressed store, hash-verified

2626#ifdef HAVE_LDOUBLE_INTEL_EXTENDED_12_BYTES_LE
2627/* Intel's 80-bit IEEE extended precision format, 96-bit storage */
2628static npy_uint32
2629Dragon4_PrintFloat_Intel_extended96(
2630 Dragon4_Scratch *scratch, npy_float96 *value, Dragon4_Options *opt)
2631{
2632 FloatVal128 val128;
2633 union {
2634 npy_float96 floatingPoint;
2635 struct {
2636 npy_uint64 a;
2637 npy_uint32 b;
2638 } integer;
2639 } buf96;
2640
2641 buf96.floatingPoint = *value;
2642 /* Intel is little-endian */
2643 val128.lo = buf96.integer.a;
2644 val128.hi = buf96.integer.b;
2645
2646 return Dragon4_PrintFloat_Intel_extended(scratch, val128, opt);
2647}
2648#endif /* HAVE_LDOUBLE_INTEL_EXTENDED_12_BYTES_LE */
2649
2650#ifdef HAVE_LDOUBLE_MOTOROLA_EXTENDED_12_BYTES_BE

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected