ps2sdk  1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
standard.h File Reference
#include <stdio.h>
#include <stddef.h>
#include <tamtypes.h>
+ Include dependency graph for standard.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define STDIO
 
#define STDDEF
 
#define UB8MAXVAL   0xffffffffffffffffLL
 
#define UB8BITS   64
 
#define SB8MAXVAL   0x7fffffffffffffffLL
 
#define UB4MAXVAL   0xffffffff
 
#define UB4BITS   32
 
#define SB4MAXVAL   0x7fffffff
 
#define UB2MAXVAL   0xffff
 
#define UB2BITS   16
 
#define SB2MAXVAL   0x7fff
 
#define UB1MAXVAL   0xff
 
#define UB1BITS   8
 
#define SB1MAXVAL   0x7f
 
#define bis(target, mask)   ((target) |= (mask))
 
#define bic(target, mask)   ((target) &= ~(mask))
 
#define bit(target, mask)   ((target) & (mask))
 
#define min(a, b)   (((a)<(b)) ? (a) : (b))
 
#define max(a, b)   (((a)<(b)) ? (b) : (a))
 
#define align(a)   (((ub4)a+(sizeof(void *)-1))&(~(sizeof(void *)-1)))
 
#define abs(a)   (((a)>0) ? (a) : -(a))
 
#define TRUE   1
 
#define FALSE   0
 
#define SUCCESS   0 /* 1 on VAX */
 

Typedefs

typedef u64 ub8
 
typedef s64 sb8
 
typedef u32 ub4
 
typedef s32 sb4
 
typedef u16 ub2
 
typedef s16 sb2
 
typedef u8 ub1
 
typedef s8 sb1
 
typedef int word
 

Macro Definition Documentation

◆ abs

#define abs (   a)    (((a)>0) ? (a) : -(a))

Definition at line 63 of file standard.h.

◆ align

#define align (   a)    (((ub4)a+(sizeof(void *)-1))&(~(sizeof(void *)-1)))

Definition at line 60 of file standard.h.

◆ bic

#define bic (   target,
  mask 
)    ((target) &= ~(mask))

Definition at line 51 of file standard.h.

◆ bis

#define bis (   target,
  mask 
)    ((target) |= (mask))

Definition at line 50 of file standard.h.

◆ bit

#define bit (   target,
  mask 
)    ((target) & (mask))

Definition at line 52 of file standard.h.

◆ FALSE

#define FALSE   0

Definition at line 66 of file standard.h.

◆ max

#define max (   a,
 
)    (((a)<(b)) ? (b) : (a))

Definition at line 57 of file standard.h.

◆ min

#define min (   a,
 
)    (((a)<(b)) ? (a) : (b))

Definition at line 54 of file standard.h.

◆ SB1MAXVAL

#define SB1MAXVAL   0x7f

Definition at line 27 of file standard.h.

◆ SB2MAXVAL

#define SB2MAXVAL   0x7fff

Definition at line 24 of file standard.h.

◆ SB4MAXVAL

#define SB4MAXVAL   0x7fffffff

Definition at line 21 of file standard.h.

◆ SB8MAXVAL

#define SB8MAXVAL   0x7fffffffffffffffLL

Definition at line 18 of file standard.h.

◆ STDDEF

#define STDDEF

Definition at line 14 of file standard.h.

◆ STDIO

#define STDIO

Definition at line 10 of file standard.h.

◆ SUCCESS

#define SUCCESS   0 /* 1 on VAX */

Definition at line 67 of file standard.h.

◆ TRUE

#define TRUE   1

Definition at line 65 of file standard.h.

◆ UB1BITS

#define UB1BITS   8

Definition at line 26 of file standard.h.

◆ UB1MAXVAL

#define UB1MAXVAL   0xff

Definition at line 25 of file standard.h.

◆ UB2BITS

#define UB2BITS   16

Definition at line 23 of file standard.h.

◆ UB2MAXVAL

#define UB2MAXVAL   0xffff

Definition at line 22 of file standard.h.

◆ UB4BITS

#define UB4BITS   32

Definition at line 20 of file standard.h.

◆ UB4MAXVAL

#define UB4MAXVAL   0xffffffff

Definition at line 19 of file standard.h.

◆ UB8BITS

#define UB8BITS   64

Definition at line 17 of file standard.h.

◆ UB8MAXVAL

#define UB8MAXVAL   0xffffffffffffffffLL

Definition at line 16 of file standard.h.

Typedef Documentation

◆ sb1

typedef s8 sb1

Definition at line 37 of file standard.h.

◆ sb2

typedef s16 sb2

Definition at line 35 of file standard.h.

◆ sb4

typedef s32 sb4

Definition at line 33 of file standard.h.

◆ sb8

typedef s64 sb8

Definition at line 31 of file standard.h.

◆ ub1

typedef u8 ub1

Definition at line 36 of file standard.h.

◆ ub2

typedef u16 ub2

Definition at line 34 of file standard.h.

◆ ub4

typedef u32 ub4

Definition at line 32 of file standard.h.

◆ ub8

typedef u64 ub8

Definition at line 30 of file standard.h.

◆ word

typedef int word

Definition at line 48 of file standard.h.