1/* $NetBSD$ */ 2 3/* 4 * IEEE-compatible infinityl.c -- public domain. 5 * For platforms where long double == double. 6 */ 7 8#include <float.h> 9#include <math.h> 10#include <machine/endian.h> 11 12#if LDBL_MANT_DIG != DBL_MANT_DIG 13#error double / long double mismatch 14#endif 15 16const union __long_double_u __infinityl = 17#if BYTE_ORDER == BIG_ENDIAN 18 { { 0x7f, 0xf0, 0, 0, 0, 0, 0, 0 } }; 19#else 20 { { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f } }; 21#endif 22