Changeset 103607 in vbox
- Timestamp:
- Feb 29, 2024 2:19:08 AM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/cdefs.h
r103605 r103607 197 197 != 1 198 198 # error "Exactly one RT_ARCH_XXX macro shall be defined" 199 #endif 200 201 /** @name RT_ARCH_VAL_XXX - Architectures. 202 * 203 * These are values used by RT_ARCH_VAL among others as an alternative to 204 * RT_ARCH_X86, RT_ARCH_AMD64 and friends for identifying the compiler target 205 * architecture. Each value is a power of two (single bit), so they can be 206 * combined together to form an architecture mask if desirable. 207 * 208 * @{ */ 209 /** */ 210 #define RT_ARCH_VAL_X86_16 0x00000001 211 #define RT_ARCH_VAL_X86 0x00000002 212 #define RT_ARCH_VAL_AMD64 0x00000004 213 #define RT_ARCH_VAL_ARM32 0x00000010 214 #define RT_ARCH_VAL_ARM64 0x00000020 215 #define RT_ARCH_VAL_SPAR32 0x00000100 216 #define RT_ARCH_VAL_SPAR64 0x00000200 217 /** @} */ 218 219 220 /** @def RT_ARCH_VAL 221 * The RT_ARCH_VAL_XXX for the compiler target architecture. */ 222 #if defined(RT_ARCH_AMD64) 223 # define RT_ARCH_VAL RT_ARCH_VAL_AMD64 224 #elif defined(RT_ARCH_ARM64) 225 # define RT_ARCH_VAL RT_ARCH_VAL_ARM64 226 #elif defined(RT_ARCH_X86) 227 # define RT_ARCH_VAL RT_ARCH_VAL_X86 228 #elif defined(RT_ARCH_ARM32) 229 # define RT_ARCH_VAL RT_ARCH_VAL_ARM32 230 #elif defined(RT_ARCH_SPARC) 231 # define RT_ARCH_VAL RT_ARCH_VAL_SPARC32 232 #elif defined(RT_ARCH_SPARC64) 233 # define RT_ARCH_VAL RT_ARCH_VAL_SPARC64 234 #else 235 # error "RT_ARCH_VAL: port me" 199 236 #endif 200 237
Note:
See TracChangeset
for help on using the changeset viewer.