Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/src/share/native/common/values.h
38825 views
// From https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/+/refs/heads/jb-dev/sysroot/usr/include/values.h12/* Old compatibility names for <limits.h> and <float.h> constants.3Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.4This file is part of the GNU C Library.5The GNU C Library is free software; you can redistribute it and/or6modify it under the terms of the GNU Lesser General Public7License as published by the Free Software Foundation; either8version 2.1 of the License, or (at your option) any later version.9The GNU C Library is distributed in the hope that it will be useful,10but WITHOUT ANY WARRANTY; without even the implied warranty of11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU12Lesser General Public License for more details.13You should have received a copy of the GNU Lesser General Public14License along with the GNU C Library; if not, write to the Free15Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA1602111-1307 USA. */17/* This interface is obsolete. New programs should use18<limits.h> and/or <float.h> instead of <values.h>. */19#ifndef _VALUES_H20#define _VALUES_H 121#include <features.h>22#include <limits.h>23#define _TYPEBITS(type) (sizeof (type) * CHAR_BIT)24#define CHARBITS _TYPEBITS (char)25#define SHORTBITS _TYPEBITS (short int)26#define INTBITS _TYPEBITS (int)27#define LONGBITS _TYPEBITS (long int)28#define PTRBITS _TYPEBITS (char *)29#define DOUBLEBITS _TYPEBITS (double)30#define FLOATBITS _TYPEBITS (float)31#define MINSHORT SHRT_MIN32#define MININT INT_MIN33#define MINLONG LONG_MIN34#define MAXSHORT SHRT_MAX35#define MAXINT INT_MAX36#define MAXLONG LONG_MAX37#define HIBITS MINSHORT38#define HIBITL MINLONG39#include <float.h>40#define MAXDOUBLE DBL_MAX41#define MAXFLOAT FLT_MAX42#define MINDOUBLE DBL_MIN43#define MINFLOAT FLT_MIN44#define DMINEXP DBL_MIN_EXP45#define FMINEXP FLT_MIN_EXP46#define DMAXEXP DBL_MAX_EXP47#define FMAXEXP FLT_MAX_EXP48#ifdef __USE_MISC49/* Some systems define this name instead of CHAR_BIT or CHARBITS. */50# define BITSPERBYTE CHAR_BIT51#endif52#endif /* values.h */535455