Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Pintos_forked_resit
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor 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
s2-alsaloumi
Pintos_forked_resit
Commits
a64e7c67
Commit
a64e7c67
authored
1 year ago
by
h2-addad
Browse files
Options
Downloads
Patches
Plain Diff
Update
parent
7daccafa
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lib/stdint.h
+51
-0
51 additions, 0 deletions
src/lib/stdint.h
with
51 additions
and
0 deletions
src/lib/stdint.h
0 → 100644
+
51
−
0
View file @
a64e7c67
#ifndef __LIB_STDINT_H
#define __LIB_STDINT_H
typedef
signed
char
int8_t
;
#define INT8_MAX 127
#define INT8_MIN (-INT8_MAX - 1)
typedef
signed
short
int
int16_t
;
#define INT16_MAX 32767
#define INT16_MIN (-INT16_MAX - 1)
typedef
signed
int
int32_t
;
#define INT32_MAX 2147483647
#define INT32_MIN (-INT32_MAX - 1)
typedef
signed
long
long
int
int64_t
;
#define INT64_MAX 9223372036854775807LL
#define INT64_MIN (-INT64_MAX - 1)
typedef
unsigned
char
uint8_t
;
#define UINT8_MAX 255
typedef
unsigned
short
int
uint16_t
;
#define UINT16_MAX 65535
typedef
unsigned
int
uint32_t
;
#define UINT32_MAX 4294967295U
typedef
unsigned
long
long
int
uint64_t
;
#define UINT64_MAX 18446744073709551615ULL
typedef
int32_t
intptr_t
;
#define INTPTR_MIN INT32_MIN
#define INTPTR_MAX INT32_MAX
typedef
uint32_t
uintptr_t
;
#define UINTPTR_MAX UINT32_MAX
typedef
int64_t
intmax_t
;
#define INTMAX_MIN INT64_MIN
#define INTMAX_MAX INT64_MAX
typedef
uint64_t
uintmax_t
;
#define UINTMAX_MAX UINT64_MAX
#define PTRDIFF_MIN INT32_MIN
#define PTRDIFF_MAX INT32_MAX
#define SIZE_MAX UINT32_MAX
#endif
/* lib/stdint.h */
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