18dffb485Schristos /* Auxiliary definitions for <float.h>. 2*4b169a6bSchristos Copyright (C) 2011-2022 Free Software Foundation, Inc. 38dffb485Schristos Written by Bruno Haible <bruno@clisp.org>, 2011. 48dffb485Schristos 5*4b169a6bSchristos This file is free software: you can redistribute it and/or modify 6*4b169a6bSchristos it under the terms of the GNU Lesser General Public License as 7*4b169a6bSchristos published by the Free Software Foundation; either version 2.1 of the 8*4b169a6bSchristos License, or (at your option) any later version. 98dffb485Schristos 10*4b169a6bSchristos This file is distributed in the hope that it will be useful, 118dffb485Schristos but WITHOUT ANY WARRANTY; without even the implied warranty of 128dffb485Schristos MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13*4b169a6bSchristos GNU Lesser General Public License for more details. 148dffb485Schristos 15*4b169a6bSchristos You should have received a copy of the GNU Lesser General Public License 168dffb485Schristos along with this program. If not, see <https://www.gnu.org/licenses/>. */ 178dffb485Schristos 188dffb485Schristos #include <config.h> 198dffb485Schristos 208dffb485Schristos /* Specification. */ 218dffb485Schristos #include <float.h> 228dffb485Schristos 238dffb485Schristos #if (defined _ARCH_PPC || defined _POWER) && (defined _AIX || defined __linux__) && (LDBL_MANT_DIG == 106) && defined __GNUC__ 248dffb485Schristos const union gl_long_double_union gl_LDBL_MAX = 258dffb485Schristos { { DBL_MAX, DBL_MAX / (double)134217728UL / (double)134217728UL } }; 268dffb485Schristos #elif defined __i386__ 278dffb485Schristos const union gl_long_double_union gl_LDBL_MAX = 288dffb485Schristos { { 0xFFFFFFFF, 0xFFFFFFFF, 32766 } }; 298dffb485Schristos #else 308dffb485Schristos /* This declaration is solely to ensure that after preprocessing 318dffb485Schristos this file is never empty. */ 328dffb485Schristos typedef int dummy; 338dffb485Schristos #endif 34