Go to the documentation of this file.
44 #ifndef _iARCH_NUMS_H_
45 #define _iARCH_NUMS_H_ 1
47 #define GLIB_ARCH_NUM (-1)
48 #define AVR_MEGA_ARCH_NUM (1)
50 #define POSIX_GENERIC_ARCH_NUM 2
51 #define WIN_NT_ARCH_NUM 3
53 #define ARM7_ARCH_NUM 0x40 // ARMv4T
54 #define CM0_ARCH_NUM 0x42 // ARMv5 Cortex M0
55 #define CM1_ARCH_NUM 0x41 // ARMv5 Cortex M1
56 #define CM3_ARCH_NUM 0x43 // ARMv5 Cortex M3
57 #define ARM9_ARCH_NUM 0x50 // ARMv5
58 #define ARM_CORTEX_ARCH_NUM 0x60 // ARMv6
60 #define CONCAT_iarch(A, B) A##B
62 #define i_ARCH_CHECK2(current_arch,test_arch) \
63 ((CONCAT_iarch(current_arch,_ARCH_NUM)) == (CONCAT_iarch(test_arch,_ARCH_NUM)))
83 #define i_ARCH_CHECK(test_arch) i_ARCH_CHECK2(i_ARCH,test_arch)