OpenCores
URL https://opencores.org/ocsvn/scarm/scarm/trunk

Subversion Repositories scarm

[/] [scarm/] [trunk/] [src/] [scTypes.h] - Blame information for rev 8

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 zhong
#ifndef __SWARM_TYPES_H__
2
#define __SWARM_TYPES_H__
3
 
4
#ifdef sun4
5
#define __BIG_ENDIAN__
6
#else /* ix86 / alpha / arm32 */
7
#define __LITTLE_ENDIAN__
8
#endif
9
 
10
#ifdef WIN32
11
#include <windows.h>
12
#endif
13
 
14
/* int is 32 bit on all platforms */
15
 
16
 
17
#ifndef WIN32
18
#include <inttypes.h>
19
#else
20
typedef signed char               int8_t;
21
typedef unsigned char             uint8_t;
22
typedef short                     int16_t;
23
typedef int                       int32_t;
24
typedef unsigned short            uint16_t;
25
typedef unsigned int              uint32_t;
26
typedef INT64                     int64_t;
27
typedef UINT64                    uint64_t;
28
#endif
29
 
30
#if 0
31
#ifndef __int8_t_defined
32
typedef short                     int16_t;
33
typedef int                       int32_t;
34
#endif /* __int8_t_defined */
35
typedef unsigned short            uint16_t;
36
typedef unsigned int              uint32_t;
37
 
38
#ifndef WIN32
39
#ifndef __int8_t_defined 
40
typedef long long int             int64_t;
41
#endif /* __int8_t_defined */
42
typedef unsigned long long int    uint64_t;
43
#else
44
typedef INT64                     int64_t;
45
typedef UINT64                    uint64_t;
46
#endif // !WIN32
47
#endif
48
 
49
typedef int                       bool_t;
50
 
51
#ifndef WIN32
52
#define FALSE  0
53
#define TRUE   !FALSE
54
#endif
55
 
56
#endif /* __SWARM_TYPES_H__ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.