Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openjdk-multiarch-jdk8u
Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/src/share/native/common/values.h
38825 views
1
// 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.h
2
3
/* Old compatibility names for <limits.h> and <float.h> constants.
4
Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
5
This file is part of the GNU C Library.
6
The GNU C Library is free software; you can redistribute it and/or
7
modify it under the terms of the GNU Lesser General Public
8
License as published by the Free Software Foundation; either
9
version 2.1 of the License, or (at your option) any later version.
10
The GNU C Library is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
Lesser General Public License for more details.
14
You should have received a copy of the GNU Lesser General Public
15
License along with the GNU C Library; if not, write to the Free
16
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
17
02111-1307 USA. */
18
/* This interface is obsolete. New programs should use
19
<limits.h> and/or <float.h> instead of <values.h>. */
20
#ifndef _VALUES_H
21
#define _VALUES_H 1
22
#include <features.h>
23
#include <limits.h>
24
#define _TYPEBITS(type) (sizeof (type) * CHAR_BIT)
25
#define CHARBITS _TYPEBITS (char)
26
#define SHORTBITS _TYPEBITS (short int)
27
#define INTBITS _TYPEBITS (int)
28
#define LONGBITS _TYPEBITS (long int)
29
#define PTRBITS _TYPEBITS (char *)
30
#define DOUBLEBITS _TYPEBITS (double)
31
#define FLOATBITS _TYPEBITS (float)
32
#define MINSHORT SHRT_MIN
33
#define MININT INT_MIN
34
#define MINLONG LONG_MIN
35
#define MAXSHORT SHRT_MAX
36
#define MAXINT INT_MAX
37
#define MAXLONG LONG_MAX
38
#define HIBITS MINSHORT
39
#define HIBITL MINLONG
40
#include <float.h>
41
#define MAXDOUBLE DBL_MAX
42
#define MAXFLOAT FLT_MAX
43
#define MINDOUBLE DBL_MIN
44
#define MINFLOAT FLT_MIN
45
#define DMINEXP DBL_MIN_EXP
46
#define FMINEXP FLT_MIN_EXP
47
#define DMAXEXP DBL_MAX_EXP
48
#define FMAXEXP FLT_MAX_EXP
49
#ifdef __USE_MISC
50
/* Some systems define this name instead of CHAR_BIT or CHARBITS. */
51
# define BITSPERBYTE CHAR_BIT
52
#endif
53
#endif /* values.h */
54
55