Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
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
pikelang
pike
Commits
34a5d34a
Commit
34a5d34a
authored
21 years ago
by
Martin Stjernholm
Browse files
Options
Downloads
Patches
Plain Diff
Some more defines.
Rev: src/pike_int_types.h:1.2
parent
d1f30f69
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pike_int_types.h
+20
-8
20 additions, 8 deletions
src/pike_int_types.h
with
20 additions
and
8 deletions
src/pike_int_types.h
+
20
−
8
View file @
34a5d34a
/* Integer types with defined sizes.
*
* $Id: pike_int_types.h,v 1.
1
200
3
/0
5/01 15:59:19 grubba
Exp $
* $Id: pike_int_types.h,v 1.
2
200
4
/0
3/17 19:24:42 mast
Exp $
*
* Extracted from global.h 1.90
*/
...
...
@@ -45,24 +45,30 @@
# endif
# ifndef MAX_INT64
# if SIZEOF_LONG >= 8
# define MAX_UINT64 ULONG_MAX
# define MAX_INT64 LONG_MAX
# define MIN_INT64 LONG_MIN
# elif SIZEOF_LONG_LONG - 0 >= 8
# ifdef LLONG_MAX
# define MAX_UINT64 ULLONG_MAX
# define MAX_INT64 LLONG_MAX
# define MIN_INT64 LLONG_MIN
# elif defined(LONG_LONG_MAX)
# define MAX_UINT64 ULONG_LONG_MAX
# define MAX_INT64 LONG_LONG_MAX
# define MIN_INT64 LONG_LONG_MIN
# else
# define MAX_UINT64 0xffffffffffffffffULL
# define MAX_INT64 0x7fffffffffffffffLL
# define MIN_INT64 (-0x7fffffffffffffffLL - 1LL)
# endif
# elif SIZEOF___INT64 - 0 >= 8
# define MAX_UINT64 _UI64_MAX
# define MAX_INT64 _I64_MAX
# define MIN_INT64 _I64_MIN
# else
/* We probably ought to warn here, but... */
# define MAX_UINT64 0xffffffffffffffffULL
# define MAX_INT64 0x7fffffffffffffffLL
# define MIN_INT64 (-0x7fffffffffffffffLL - 1LL)
# endif
...
...
@@ -80,6 +86,7 @@
# endif
#endif
#ifndef MAX_INT32
# define MAX_UINT32 4294967295U
# define MAX_INT32 2147483647
# define MIN_INT32 (-2147483647-1)
#endif
...
...
@@ -94,11 +101,16 @@
# define INT8 char
#endif
#ifndef LONGEST
#ifdef INT64
# define LONGEST INT64
# define PRINTLONGEST PRINTINT64
# define MAX_ULONGEST MAX_UINT64
# define MAX_LONGEST MAX_INT64
# define MIN_LONGEST MIN_INT64
#else
# define LONGEST INT32
# define PRINTLONGEST ""
# define MAX_ULONGEST MAX_UINT32
# define MAX_LONGEST MAX_INT32
# define MIN_LONGEST MIN_INT32
#endif
#endif
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