equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef _DSTYPES_H_ |
|
20 #define _DSTYPES_H_ |
|
21 |
|
22 #ifndef ui8 |
|
23 typedef unsigned char ui8; |
|
24 #endif |
|
25 |
|
26 #ifndef ui16 |
|
27 typedef unsigned short ui16; |
|
28 #endif |
|
29 |
|
30 #ifndef ui32 |
|
31 typedef unsigned long ui32; |
|
32 #endif |
|
33 |
|
34 typedef struct { |
|
35 ui16 hword_0; |
|
36 ui16 hword_1; |
|
37 ui16 hword_2; |
|
38 ui16 hword_3; |
|
39 ui16 hword_4; |
|
40 } ui80; |
|
41 |
|
42 typedef struct { |
|
43 ui32 word_0; |
|
44 ui32 word_1; |
|
45 ui32 word_2; |
|
46 ui32 word_3; |
|
47 } ui128; |
|
48 |
|
49 #if __MWERKS__ |
|
50 #if __option( longlong ) |
|
51 typedef unsigned long long ui64; |
|
52 #else /* NOT __option( longlong ) */ |
|
53 typedef struct { |
|
54 ui32 word_0; |
|
55 ui32 word_1; |
|
56 } ui64; |
|
57 #endif /* if/else __option( longlong ) */ |
|
58 #else /* NOT __MWERKS__ */ |
|
59 #if __GNUC__ |
|
60 typedef unsigned long long ui64; |
|
61 #else /* NOT __GNUC__ */ |
|
62 typedef struct { ui32 word_0, word_1; } ui64; |
|
63 #endif /* if/else __GNUC__ */ |
|
64 #endif /* if/else __MWERKS__ */ |
|
65 |
|
66 |
|
67 |
|
68 #if defined( __CWDS__ ) || defined( __NEED_BOOL__ ) /* see __config.h */ |
|
69 typedef int bool; |
|
70 #define false (0) |
|
71 #define true (1) |
|
72 #endif |
|
73 |
|
74 #endif /* _DSTYPES_H_ */ |