OLD | NEW |
1 /* CpuArch.h -- CPU specific code | 1 /* CpuArch.h -- CPU specific code |
2 2010-10-26: Igor Pavlov : Public domain */ | 2 2010-10-26: Igor Pavlov : Public domain */ |
3 | 3 |
4 #ifndef __CPU_ARCH_H | 4 #ifndef __CPU_ARCH_H |
5 #define __CPU_ARCH_H | 5 #define __CPU_ARCH_H |
6 | 6 |
| 7 #include <stdlib.h> |
7 #include "Types.h" | 8 #include "Types.h" |
8 | 9 |
9 EXTERN_C_BEGIN | 10 EXTERN_C_BEGIN |
10 | 11 |
11 /* | 12 /* |
12 MY_CPU_LE means that CPU is LITTLE ENDIAN. | 13 MY_CPU_LE means that CPU is LITTLE ENDIAN. |
13 If MY_CPU_LE is not defined, we don't know about that property of platform (it c
an be LITTLE ENDIAN). | 14 If MY_CPU_LE is not defined, we don't know about that property of platform (it c
an be LITTLE ENDIAN). |
14 | 15 |
15 MY_CPU_LE_UNALIGN means that CPU is LITTLE ENDIAN and CPU supports unaligned mem
ory accesses. | 16 MY_CPU_LE_UNALIGN means that CPU is LITTLE ENDIAN and CPU supports unaligned mem
ory accesses. |
16 If MY_CPU_LE_UNALIGN is not defined, we don't know about these properties of pla
tform. | 17 If MY_CPU_LE_UNALIGN is not defined, we don't know about these properties of pla
tform. |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 #define x86cpuid_GetStepping(p) ((p)->ver & 0xF) | 147 #define x86cpuid_GetStepping(p) ((p)->ver & 0xF) |
147 | 148 |
148 Bool CPU_Is_InOrder(); | 149 Bool CPU_Is_InOrder(); |
149 Bool CPU_Is_Aes_Supported(); | 150 Bool CPU_Is_Aes_Supported(); |
150 | 151 |
151 #endif | 152 #endif |
152 | 153 |
153 EXTERN_C_END | 154 EXTERN_C_END |
154 | 155 |
155 #endif | 156 #endif |
OLD | NEW |