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
d91f5bfa
Commit
d91f5bfa
authored
Sep 29, 1993
by
Doug Evans
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(UINT_MAX, ULONG_MAX, ULONG_LONG_MAX): redefine in a simpler way.
From-SVN: r5532
parent
94e21bd7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
gcc/glimits.h
+3
-5
No files found.
gcc/glimits.h
View file @
d91f5bfa
...
...
@@ -58,9 +58,7 @@
/* Maximum value an `unsigned int' can hold. (Minimum is 0). */
#undef UINT_MAX
#define __glimits__evconcat__(x, y) __glimits__concat__ (x, y)
#define __glimits__concat__(x, y) x##y
#define UINT_MAX (__glimits__evconcat__ (INT_MAX, U) * 2 + 1)
#define UINT_MAX (INT_MAX * 2U + 1)
/* Minimum and maximum values a `signed long int' can hold.
(Same as `int'). */
...
...
@@ -74,7 +72,7 @@
/* Maximum value an `unsigned long int' can hold. (Minimum is 0). */
#undef ULONG_MAX
#define ULONG_MAX (
__glimits__evconcat__ (LONG_MAX, U) * 2
+ 1)
#define ULONG_MAX (
LONG_MAX * 2UL
+ 1)
#if defined (__GNU_LIBRARY__) ? defined (__USE_GNU) : !defined (__STRICT_ANSI__)
/* Minimum and maximum values a `signed long long int' can hold. */
...
...
@@ -88,7 +86,7 @@
/* Maximum value an `unsigned long long int' can hold. (Minimum is 0). */
#undef ULONG_LONG_MAX
#define ULONG_LONG_MAX (
__glimits__evconcat__ (LONG_LONG_MAX, U) * 2
+ 1)
#define ULONG_LONG_MAX (
LONG_LONG_MAX * 2ULL
+ 1)
#endif
#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