Blame src/gl/float.c

Packit aea12f
/* Auxiliary definitions for <float.h>.
Packit Service 991b93
   Copyright (C) 2011-2020 Free Software Foundation, Inc.
Packit aea12f
   Written by Bruno Haible <bruno@clisp.org>, 2011.
Packit aea12f
Packit aea12f
   This program is free software: you can redistribute it and/or modify
Packit aea12f
   it under the terms of the GNU General Public License as published by
Packit aea12f
   the Free Software Foundation; either version 3 of the License, or
Packit aea12f
   (at your option) any later version.
Packit aea12f
Packit aea12f
   This program is distributed in the hope that it will be useful,
Packit aea12f
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit aea12f
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit aea12f
   GNU General Public License for more details.
Packit aea12f
Packit aea12f
   You should have received a copy of the GNU General Public License
Packit aea12f
   along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
Packit aea12f
Packit aea12f
#include <config.h>
Packit aea12f
Packit aea12f
/* Specification.  */
Packit aea12f
#include <float.h>
Packit aea12f
Packit aea12f
#if (defined _ARCH_PPC || defined _POWER) && (defined _AIX || defined __linux__) && (LDBL_MANT_DIG == 106) && defined __GNUC__
Packit aea12f
const union gl_long_double_union gl_LDBL_MAX =
Packit aea12f
  { { DBL_MAX, DBL_MAX / (double)134217728UL / (double)134217728UL } };
Packit aea12f
#elif defined __i386__
Packit aea12f
const union gl_long_double_union gl_LDBL_MAX =
Packit aea12f
  { { 0xFFFFFFFF, 0xFFFFFFFF, 32766 } };
Packit aea12f
#else
Packit aea12f
/* This declaration is solely to ensure that after preprocessing
Packit aea12f
   this file is never empty.  */
Packit aea12f
typedef int dummy;
Packit aea12f
#endif