source: soft/giet_vm/libs/libsrl/srl_public_types.h @ 201

Last change on this file since 201 was 160, checked in by karaoui, 12 years ago

giet-vm new version

File size: 986 bytes
Line 
1#ifndef SRL_PUBLIC_TYPES_H
2#define SRL_PUBLIC_TYPES_H
3
4/**
5 * @file
6 * @module{SRL}
7 * @short Abstract types definitions
8 */
9
10typedef unsigned long       uint_t;
11typedef signed long         sint_t;
12
13typedef unsigned char       uint8_t;
14typedef signed char         sint8_t;
15typedef signed short int    int8_t;
16
17typedef unsigned short int  uint16_t;
18typedef signed short int    sint16_t;
19typedef signed short int    int16_t;
20
21typedef unsigned int        uint32_t;
22typedef signed int          sint32_t;
23typedef signed int          int32_t;
24
25typedef sint32_t            error_t;
26typedef uint_t              bool_t;
27
28typedef void *srl_buffer_t;
29
30
31#ifndef NULL
32#define NULL                (void*)0
33#endif
34
35/** Get integer minimum value */
36#define __MIN(a, b) ({ const typeof(a) __a = (a); const typeof(b) __b = (b); __b < __a ? __b : __a; })
37   
38/** Get integer maximum value */
39#define __MAX(a, b) ({ const typeof(a) __a = (a); const typeof(b) __b = (b); __b > __a ? __b : __a; })
40
41
42#endif
Note: See TracBrowser for help on using the repository browser.