| 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> | |
| 8 #include "Types.h" | 7 #include "Types.h" |
| 9 | 8 |
| 10 EXTERN_C_BEGIN | 9 EXTERN_C_BEGIN |
| 11 | 10 |
| 12 /* | 11 /* |
| 13 MY_CPU_LE means that CPU is LITTLE ENDIAN. | 12 MY_CPU_LE means that CPU is 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). | 13 If MY_CPU_LE is not defined, we don't know about that property of platform (it c
an be LITTLE ENDIAN). |
| 15 | 14 |
| 16 MY_CPU_LE_UNALIGN means that CPU is LITTLE ENDIAN and CPU supports unaligned mem
ory accesses. | 15 MY_CPU_LE_UNALIGN means that CPU is LITTLE ENDIAN and CPU supports unaligned mem
ory accesses. |
| 17 If MY_CPU_LE_UNALIGN is not defined, we don't know about these properties of pla
tform. | 16 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... |
| 147 #define x86cpuid_GetStepping(p) ((p)->ver & 0xF) | 146 #define x86cpuid_GetStepping(p) ((p)->ver & 0xF) |
| 148 | 147 |
| 149 Bool CPU_Is_InOrder(); | 148 Bool CPU_Is_InOrder(); |
| 150 Bool CPU_Is_Aes_Supported(); | 149 Bool CPU_Is_Aes_Supported(); |
| 151 | 150 |
| 152 #endif | 151 #endif |
| 153 | 152 |
| 154 EXTERN_C_END | 153 EXTERN_C_END |
| 155 | 154 |
| 156 #endif | 155 #endif |
| OLD | NEW |