aboutsummaryrefslogtreecommitdiff
path: root/sys/linux/amd64/arch/bits.h
blob: 9ff32285616b2a23fb64cb94813bafa6dd736c23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

/* base types */
#define INT8                 char
#define INT16                short
#define INT32                int
#define INT64                long
#define ADDR                 long
#define REG                  long

/* abi */
#define PAGESIZE             4096
#define INTPTR_MIN           INT64_MIN
#define INTPTR_MAX           INT64_MAX
#define UINTPTR_MAX          UINT64_MAX
#define UINTPTR_MAX          UINT64_MAX
#define PTRDIFF_MIN          INT64_MIN
#define PTRDIFF_MAX          INT64_MAX
#define SIZE_MAX             UINT64_MAX
#define LONG_MAX             0x7fffffffffffffffL