/* $NetBSD: cdefs.h,v 1.19 2020/12/01 02:43:14 rin Exp $ */ #ifndef _ARM_CDEFS_H_ #define _ARM_CDEFS_H_ #ifndef __lint__ #if (__GNUC__ == 4 && __GNUC_MINOR__ < 1) || __GNUC__ < 4 #error GCC 4.1 or compatible required. #endif #endif #if defined (__ARM_ARCH_8A__) || defined (__ARM_ARCH_8A) || \ __ARM_ARCH == 8 /* __ARM_ARCH_8A__ is a typo */ #define _ARM_ARCH_8 #endif #if defined (_ARM_ARCH_8) || defined (__ARM_ARCH_7__) || \ defined (__ARM_ARCH_7A__) || defined (__ARM_ARCH_7R__) || \ defined (__ARM_ARCH_7M__) || defined (__ARM_ARCH_7EM__) /* 7R, 7M, 7EM are for non MMU arms */ #define _ARM_ARCH_7 #endif #if defined (_ARM_ARCH_7) || defined (__ARM_ARCH_6T2__) #define _ARM_ARCH_T2 /* Thumb2 */ #endif #if defined (_ARM_ARCH_T2) || defined (__ARM_ARCH_6__) || \ defined (__ARM_ARCH_6J__) || \ defined (__ARM_ARCH_6K__) || defined (__ARM_ARCH_6KZ__) || \ defined (__ARM_ARCH_6Z__) || defined (__ARM_ARCH_6ZK__) || \ defined (__ARM_ARCH_6ZM__) #define _ARM_ARCH_6 #endif #if defined (_ARM_ARCH_6) || defined (__ARM_ARCH_5T__) || \ defined (__ARM_ARCH_5TE__) || defined (__ARM_ARCH_5TEJ__) #define _ARM_ARCH_5T #endif #if defined (_ARM_ARCH_6) || defined (_ARM_ARCH_5T) || defined (__ARM_ARCH_5__) #define _ARM_ARCH_5 #endif #if defined (_ARM_ARCH_5) || defined (__ARM_ARCH_4T__) #define _ARM_ARCH_4T #endif #if defined (_ARM_ARCH_T2) || \ (!defined (__thumb__) && \ (defined (_ARM_ARCH_6) || defined (__ARM_ARCH_5TE__) || \ defined (__ARM_ARCH_5TEJ__))) #define _ARM_ARCH_DWORD_OK #endif #if defined (__ARMEB__) && defined (_ARM_ARCH_6) #define _ARM_ARCH_BE8 #endif #if defined(__ARM_PCS_AAPCS64) #define __ALIGNBYTES (sizeof(__int128_t) - 1) #elif defined(__ARM_EABI__) #define __ALIGNBYTES (sizeof(long long) - 1) #else #define __ALIGNBYTES (sizeof(int) - 1) #endif #endif /* !_ARM_CDEFS_H_ */ |