Re: [AD] 64bit CPU detection patch |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
What values did you have in mind for the CPU_IA64 and CPU_AMDx86_64
identifiers (I don't like the latter - can we rename it to CPU_AMD64)?
yes, AMD64 is fine.
the values dont matter to much, just add to the end of the list:
/include/allegro/system.h line 100:
/* CPU Capabilities flags - set to 0 on non x86 capable chips */
#define CPU_ID 0x0001
#define CPU_FPU 0x0002
#define CPU_MMX 0x0004
#define CPU_MMXPLUS 0x0008
#define CPU_SSE 0x0010
#define CPU_SSE2 0x0020
#define CPU_3DNOW 0x0040
#define CPU_ENH3DNOW 0x0080
#define CPU_CMOV 0x0100
#define CPU_AMD64 0x0200
#define CPU_IA64 0x0400