sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
standard.h
Go to the documentation of this file.
1/*
2------------------------------------------------------------------------------
3Standard definitions and types, Bob Jenkins
4------------------------------------------------------------------------------
5*/
10#ifndef STANDARD_H
11#define STANDARD_H
12
13#include <stddef.h>
14#include <stdint.h>
15#include <stdbool.h>
16
17#define UB8MAXVAL 0xffffffffffffffffLL
18#define UB8BITS 64
19#define SB8MAXVAL 0x7fffffffffffffffLL
20#define UB4MAXVAL 0xffffffff
21#define UB4BITS 32
22#define SB4MAXVAL 0x7fffffff
23#define UB2MAXVAL 0xffff
24#define UB2BITS 16
25#define SB2MAXVAL 0x7fff
26#define UB1MAXVAL 0xff
27#define UB1BITS 8
28#define SB1MAXVAL 0x7f
29
30#define align(a) (((uint32_t)a+(sizeof(void *)-1))&(~(sizeof(void *)-1)))
31
32#endif /* STANDARD_H */