Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
96f56dcd
Commit
96f56dcd
authored
Sep 02, 1993
by
Doug Evans
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(__INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__): New macros.
(INT_MAX, LONG_MAX, LONG_LONG_MAX): Use them. From-SVN: r5252
parent
ae1ac702
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
gcc/glimits.h
+15
-6
No files found.
gcc/glimits.h
View file @
96f56dcd
...
@@ -48,36 +48,45 @@
...
@@ -48,36 +48,45 @@
#define USHRT_MAX 65535
#define USHRT_MAX 65535
/* Minimum and maximum values a `signed int' can hold. */
/* Minimum and maximum values a `signed int' can hold. */
#ifndef __INT_MAX__
#define __INT_MAX__ 2147483647
#endif
#undef INT_MIN
#undef INT_MIN
#define INT_MIN (-INT_MAX-1)
#define INT_MIN (-INT_MAX-1)
#undef INT_MAX
#undef INT_MAX
#define INT_MAX
2147483647
#define INT_MAX
(__INT_MAX__)
/* Maximum value an `unsigned int' can hold. (Minimum is 0). */
/* Maximum value an `unsigned int' can hold. (Minimum is 0). */
#undef UINT_MAX
#undef UINT_MAX
#define UINT_MAX
4294967295U
#define UINT_MAX
((unsigned) INT_MAX * 2 + 1)
/* Minimum and maximum values a `signed long int' can hold.
/* Minimum and maximum values a `signed long int' can hold.
(Same as `int'). */
(Same as `int'). */
#ifndef __LONG_MAX__
#define __LONG_MAX__ 2147483647L
#endif
#undef LONG_MIN
#undef LONG_MIN
#define LONG_MIN (-LONG_MAX-1)
#define LONG_MIN (-LONG_MAX-1)
#undef LONG_MAX
#undef LONG_MAX
#define LONG_MAX
2147483647L
#define LONG_MAX
(__LONG_MAX__)
/* Maximum value an `unsigned long int' can hold. (Minimum is 0). */
/* Maximum value an `unsigned long int' can hold. (Minimum is 0). */
#undef ULONG_MAX
#undef ULONG_MAX
#define ULONG_MAX
4294967295UL
#define ULONG_MAX
((unsigned long) LONG_MAX * 2 + 1)
#if defined (__GNU_LIBRARY__) ? defined (__USE_GNU) : !defined (__STRICT_ANSI__)
#if defined (__GNU_LIBRARY__) ? defined (__USE_GNU) : !defined (__STRICT_ANSI__)
/* Minimum and maximum values a `signed long long int' can hold. */
/* Minimum and maximum values a `signed long long int' can hold. */
#ifndef __LONG_LONG_MAX__
#define __LONG_LONG_MAX__ 9223372036854775807LL
#endif
#undef LONG_LONG_MIN
#undef LONG_LONG_MIN
#define LONG_LONG_MIN (-LONG_LONG_MAX-1)
#define LONG_LONG_MIN (-LONG_LONG_MAX-1)
#undef LONG_LONG_MAX
#undef LONG_LONG_MAX
#define LONG_LONG_MAX
9223372036854775807LL
#define LONG_LONG_MAX
(__LONG_LONG_MAX__)
/* Maximum value an `unsigned long long int' can hold. (Minimum is 0). */
/* Maximum value an `unsigned long long int' can hold. (Minimum is 0). */
#undef ULONG_LONG_MAX
#undef ULONG_LONG_MAX
#define ULONG_LONG_MAX
18446744073709551615ULL
#define ULONG_LONG_MAX
((unsigned long long) LONG_LONG_MAX * 2 + 1)
#endif
#endif
#endif
/* _MACH_MACHLIMITS_H_ */
#endif
/* _MACH_MACHLIMITS_H_ */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment