Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
relibc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
redox-os
relibc
Commits
b8491654
Commit
b8491654
authored
7 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
Fix MAX_C macros
parent
ea804582
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/stdint.h
+8
-8
8 additions, 8 deletions
include/stdint.h
with
8 additions
and
8 deletions
include/stdint.h
+
8
−
8
View file @
b8491654
...
...
@@ -6,7 +6,7 @@
#define INT8_MAX 0x7F
typedef
signed
char
int8_t
;
#define UINT8_C(value) ((uint8_t)
__CONCAT(
value
,
U)
)
#define UINT8_C(value) ((uint8_t) value
##
U)
#define UINT8_MIN 0x00
#define UINT8_MAX 0xFF
typedef
unsigned
char
uint8_t
;
...
...
@@ -16,37 +16,37 @@ typedef unsigned char uint8_t;
#define INT16_MAX 0x7FFF
typedef
signed
short
int16_t
;
#define UINT16_C(value)
__CONCAT(
value
,
U
)
#define UINT16_C(value) value
##
U
#define UINT16_MIN 0x0000
#define UINT16_MAX 0xFFFF
typedef
unsigned
short
uint16_t
;
#define INT32_C(value)
__CONCAT(
value
,
L
)
#define INT32_C(value) value
##
L
#define INT32_MIN -0x80000000
#define INT32_MAX 0x7FFFFFFF
typedef
signed
long
int32_t
;
#define UINT32_C(value)
__CONCAT(
value
,
UL
)
#define UINT32_C(value) value
##
UL
#define UINT32_MIN 0x00000000
#define UINT32_MAX 0xFFFFFFFF
typedef
unsigned
long
uint32_t
;
#define INT64_C(value)
__CONCAT(
value
,
LL
)
#define INT64_C(value) value
##
LL
#define INT64_MIN -0x8000000000000000
#define INT64_MAX 0x7FFFFFFFFFFFFFFF
typedef
signed
long
long
int64_t
;
#define UINT64_C(value)
__CONCAT(
value
,
ULL
)
#define UINT64_C(value) value
##
ULL
#define UINT64_MIN 0x0000000000000000
#define UINT64_MAX 0xFFFFFFFFFFFFFFFF
typedef
unsigned
long
long
uint64_t
;
#define INTMAX_C(value)
__CONCAT(
value
,
LL
)
#define INTMAX_C(value) value
##
LL
#define INTMAX_MIN INT64_MIN
#define INTMAX_MAX INT64_MAX
typedef
int64_t
intmax_t
;
#define UINTMAX_C(value)
__CONCAT(
value
,
ULL
)
#define UINTMAX_C(value) value
##
ULL
#define UINTMAX_MIN UINT64_MIN
#define UINTMAX_MAX UINT64_MAX
typedef
uint64_t
uintmax_t
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment