📄 miniacc.h
字号:
# define ACC_SIZEOF_SHORT 8# elif (USHRT_MAX == ACC_0xffffL)# define ACC_SIZEOF_SHORT 2# elif (__ACC_LSR(USHRT_MAX,7) == 1)# define ACC_SIZEOF_SHORT 1# elif (__ACC_LSR(USHRT_MAX,15) == 1)# define ACC_SIZEOF_SHORT 2# elif (__ACC_LSR(USHRT_MAX,31) == 1)# define ACC_SIZEOF_SHORT 4# elif (__ACC_LSR(USHRT_MAX,63) == 1)# define ACC_SIZEOF_SHORT 8# elif (__ACC_LSR(USHRT_MAX,127) == 1)# define ACC_SIZEOF_SHORT 16# else# error "ACC_SIZEOF_SHORT"# endif#endif#if !defined(ACC_SIZEOF_INT)# if (ACC_ARCH_CRAY_PVP)# define ACC_SIZEOF_INT 8# elif (UINT_MAX == ACC_0xffffL)# define ACC_SIZEOF_INT 2# elif (UINT_MAX == ACC_0xffffffffL)# define ACC_SIZEOF_INT 4# elif (__ACC_LSR(UINT_MAX,7) == 1)# define ACC_SIZEOF_INT 1# elif (__ACC_LSR(UINT_MAX,15) == 1)# define ACC_SIZEOF_INT 2# elif (__ACC_LSR(UINT_MAX,31) == 1)# define ACC_SIZEOF_INT 4# elif (__ACC_LSR(UINT_MAX,63) == 1)# define ACC_SIZEOF_INT 8# elif (__ACC_LSR(UINT_MAX,127) == 1)# define ACC_SIZEOF_INT 16# else# error "ACC_SIZEOF_INT"# endif#endif#if !defined(ACC_SIZEOF_LONG)# if (ULONG_MAX == ACC_0xffffffffL)# define ACC_SIZEOF_LONG 4# elif (__ACC_LSR(ULONG_MAX,7) == 1)# define ACC_SIZEOF_LONG 1# elif (__ACC_LSR(ULONG_MAX,15) == 1)# define ACC_SIZEOF_LONG 2# elif (__ACC_LSR(ULONG_MAX,31) == 1)# define ACC_SIZEOF_LONG 4# elif (__ACC_LSR(ULONG_MAX,63) == 1)# define ACC_SIZEOF_LONG 8# elif (__ACC_LSR(ULONG_MAX,127) == 1)# define ACC_SIZEOF_LONG 16# else# error "ACC_SIZEOF_LONG"# endif#endif#if !defined(ACC_SIZEOF_LONG_LONG) && !defined(ACC_SIZEOF___INT64)#if (ACC_SIZEOF_LONG > 0 && ACC_SIZEOF_LONG < 8)# if defined(__LONG_MAX__) && defined(__LONG_LONG_MAX__)# if (ACC_CC_GNUC >= 0x030300ul)# if ((__LONG_MAX__)+0 == (__LONG_LONG_MAX__)+0)# define ACC_SIZEOF_LONG_LONG ACC_SIZEOF_LONG# endif# endif# endif#endif#endif#if !defined(ACC_SIZEOF_LONG_LONG) && !defined(ACC_SIZEOF___INT64)#if (ACC_SIZEOF_LONG > 0 && ACC_SIZEOF_LONG < 8)#if (ACC_ARCH_I086 && ACC_CC_DMC)#elif (ACC_CC_CILLY) && defined(__GNUC__)# define ACC_SIZEOF_LONG_LONG 8#elif (ACC_CC_GNUC || ACC_CC_LLVM || ACC_CC_PATHSCALE)# define ACC_SIZEOF_LONG_LONG 8#elif ((ACC_OS_WIN32 || ACC_OS_WIN64 || defined(_WIN32)) && ACC_CC_MSC && (_MSC_VER >= 1400))# define ACC_SIZEOF_LONG_LONG 8#elif (ACC_OS_WIN64 || defined(_WIN64))# define ACC_SIZEOF___INT64 8#elif (ACC_ARCH_I386 && (ACC_CC_DMC))# define ACC_SIZEOF_LONG_LONG 8#elif (ACC_ARCH_I386 && (ACC_CC_SYMANTECC && (__SC__ >= 0x700)))# define ACC_SIZEOF_LONG_LONG 8#elif (ACC_ARCH_I386 && (ACC_CC_INTELC && defined(__linux__)))# define ACC_SIZEOF_LONG_LONG 8#elif (ACC_ARCH_I386 && (ACC_CC_MWERKS || ACC_CC_PELLESC || ACC_CC_PGI || ACC_CC_SUNPROC))# define ACC_SIZEOF_LONG_LONG 8#elif (ACC_ARCH_I386 && (ACC_CC_INTELC || ACC_CC_MSC))# define ACC_SIZEOF___INT64 8#elif ((ACC_OS_WIN32 || defined(_WIN32)) && (ACC_CC_MSC))# define ACC_SIZEOF___INT64 8#elif (ACC_ARCH_I386 && (ACC_CC_BORLANDC && (__BORLANDC__ >= 0x0520)))# define ACC_SIZEOF___INT64 8#elif (ACC_ARCH_I386 && (ACC_CC_WATCOMC && (__WATCOMC__ >= 1100)))# define ACC_SIZEOF___INT64 8#elif (ACC_CC_WATCOMC && defined(_INTEGRAL_MAX_BITS) && (_INTEGRAL_MAX_BITS == 64))# define ACC_SIZEOF___INT64 8#elif (ACC_OS_OS400 || defined(__OS400__)) && defined(__LLP64_IFC__)# define ACC_SIZEOF_LONG_LONG 8#elif (defined(__vms) || defined(__VMS)) && (__INITIAL_POINTER_SIZE+0 == 64)# define ACC_SIZEOF_LONG_LONG 8#elif (ACC_CC_SDCC) && (ACC_SIZEOF_INT == 2)#elif 1 && defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)# define ACC_SIZEOF_LONG_LONG 8#endif#endif#endif#if defined(__cplusplus) && defined(ACC_CC_GNUC)# if (ACC_CC_GNUC < 0x020800ul)# undef ACC_SIZEOF_LONG_LONG# endif#endif#if defined(ACC_CFG_NO_LONG_LONG) || defined(__NO_LONG_LONG)# undef ACC_SIZEOF_LONG_LONG#endif#if !defined(ACC_SIZEOF_VOID_P)#if (ACC_ARCH_I086)# define __ACC_WORDSIZE 2# if (ACC_MM_TINY || ACC_MM_SMALL || ACC_MM_MEDIUM)# define ACC_SIZEOF_VOID_P 2# elif (ACC_MM_COMPACT || ACC_MM_LARGE || ACC_MM_HUGE)# define ACC_SIZEOF_VOID_P 4# else# error "ACC_MM"# endif#elif (ACC_ARCH_AVR || ACC_ARCH_Z80)# define __ACC_WORDSIZE 1# define ACC_SIZEOF_VOID_P 2#elif (ACC_ARCH_C166 || ACC_ARCH_MCS51 || ACC_ARCH_MCS251 || ACC_ARCH_MSP430)# define ACC_SIZEOF_VOID_P 2#elif (ACC_ARCH_H8300)# if defined(__NORMAL_MODE__)# define __ACC_WORDSIZE 4# define ACC_SIZEOF_VOID_P 2# elif defined(__H8300H__) || defined(__H8300S__) || defined(__H8300SX__)# define __ACC_WORDSIZE 4# define ACC_SIZEOF_VOID_P 4# else# define __ACC_WORDSIZE 2# define ACC_SIZEOF_VOID_P 2# endif# if (ACC_CC_GNUC && (ACC_CC_GNUC < 0x040000ul)) && (ACC_SIZEOF_INT == 4)# define ACC_SIZEOF_SIZE_T ACC_SIZEOF_INT# define ACC_SIZEOF_PTRDIFF_T ACC_SIZEOF_INT# endif#elif (ACC_ARCH_M16C)# define __ACC_WORDSIZE 2# if defined(__m32c_cpu__) || defined(__m32cm_cpu__)# define ACC_SIZEOF_VOID_P 4# else# define ACC_SIZEOF_VOID_P 2# endif#elif (ACC_SIZEOF_LONG == 8) && ((defined(__mips__) && defined(__R5900__)) || defined(__MIPS_PSX2__))# define __ACC_WORDSIZE 8# define ACC_SIZEOF_VOID_P 4#elif defined(__LLP64__) || defined(__LLP64) || defined(_LLP64) || defined(_WIN64)# define __ACC_WORDSIZE 8# define ACC_SIZEOF_VOID_P 8#elif (ACC_OS_OS400 || defined(__OS400__)) && defined(__LLP64_IFC__)# define ACC_SIZEOF_VOID_P ACC_SIZEOF_LONG# define ACC_SIZEOF_SIZE_T ACC_SIZEOF_LONG# define ACC_SIZEOF_PTRDIFF_T ACC_SIZEOF_LONG#elif (ACC_OS_OS400 || defined(__OS400__))# define __ACC_WORDSIZE ACC_SIZEOF_LONG# define ACC_SIZEOF_VOID_P 16# define ACC_SIZEOF_SIZE_T ACC_SIZEOF_LONG# define ACC_SIZEOF_PTRDIFF_T ACC_SIZEOF_LONG#elif (defined(__vms) || defined(__VMS)) && (__INITIAL_POINTER_SIZE+0 == 64)# define ACC_SIZEOF_VOID_P 8# define ACC_SIZEOF_SIZE_T ACC_SIZEOF_LONG# define ACC_SIZEOF_PTRDIFF_T ACC_SIZEOF_LONG#elif (ACC_ARCH_SPU)# if 0# define __ACC_WORDSIZE 16# endif# define ACC_SIZEOF_VOID_P 4#else# define ACC_SIZEOF_VOID_P ACC_SIZEOF_LONG#endif#endif#if !defined(ACC_WORDSIZE)# if defined(__ACC_WORDSIZE)# define ACC_WORDSIZE __ACC_WORDSIZE# else# define ACC_WORDSIZE ACC_SIZEOF_VOID_P# endif#endif#if !defined(ACC_SIZEOF_SIZE_T)#if (ACC_ARCH_I086 || ACC_ARCH_M16C)# define ACC_SIZEOF_SIZE_T 2#else# define ACC_SIZEOF_SIZE_T ACC_SIZEOF_VOID_P#endif#endif#if !defined(ACC_SIZEOF_PTRDIFF_T)#if (ACC_ARCH_I086)# if (ACC_MM_TINY || ACC_MM_SMALL || ACC_MM_MEDIUM || ACC_MM_HUGE)# define ACC_SIZEOF_PTRDIFF_T ACC_SIZEOF_VOID_P# elif (ACC_MM_COMPACT || ACC_MM_LARGE)# if (ACC_CC_BORLANDC || ACC_CC_TURBOC)# define ACC_SIZEOF_PTRDIFF_T 4# else# define ACC_SIZEOF_PTRDIFF_T 2# endif# else# error "ACC_MM"# endif#else# define ACC_SIZEOF_PTRDIFF_T ACC_SIZEOF_SIZE_T#endif#endif#if defined(ACC_ABI_NEUTRAL_ENDIAN)# undef ACC_ABI_BIG_ENDIAN# undef ACC_ABI_LITTLE_ENDIAN#elif !defined(ACC_ABI_BIG_ENDIAN) && !defined(ACC_ABI_LITTLE_ENDIAN)#if (ACC_ARCH_ALPHA) && (ACC_ARCH_CRAY_MPP)# define ACC_ABI_BIG_ENDIAN 1#elif (ACC_ARCH_ALPHA || ACC_ARCH_AMD64 || ACC_ARCH_BLACKFIN || ACC_ARCH_CRIS || ACC_ARCH_I086 || ACC_ARCH_I386 || ACC_ARCH_MSP430)# define ACC_ABI_LITTLE_ENDIAN 1#elif (ACC_ARCH_M68K || ACC_ARCH_S390)# define ACC_ABI_BIG_ENDIAN 1#elif 1 && defined(__IAR_SYSTEMS_ICC__) && defined(__LITTLE_ENDIAN__)# if (__LITTLE_ENDIAN__ == 1)# define ACC_ABI_LITTLE_ENDIAN 1# else# define ACC_ABI_BIG_ENDIAN 1# endif#elif 1 && defined(__BIG_ENDIAN__) && !defined(__LITTLE_ENDIAN__)# define ACC_ABI_BIG_ENDIAN 1#elif 1 && defined(__LITTLE_ENDIAN__) && !defined(__BIG_ENDIAN__)# define ACC_ABI_LITTLE_ENDIAN 1#elif 1 && (ACC_ARCH_ARM) && defined(__ARMEB__) && !defined(__ARMEL__)# define ACC_ABI_BIG_ENDIAN 1#elif 1 && (ACC_ARCH_ARM) && defined(__ARMEL__) && !defined(__ARMEB__)# define ACC_ABI_LITTLE_ENDIAN 1#elif 1 && (ACC_ARCH_MIPS) && defined(__MIPSEB__) && !defined(__MIPSEL__)# define ACC_ABI_BIG_ENDIAN 1#elif 1 && (ACC_ARCH_MIPS) && defined(__MIPSEL__) && !defined(__MIPSEB__)# define ACC_ABI_LITTLE_ENDIAN 1#endif#endif#if defined(ACC_ABI_BIG_ENDIAN) && defined(ACC_ABI_LITTLE_ENDIAN)# error "this should not happen"#endif#if defined(ACC_ABI_BIG_ENDIAN)# define ACC_INFO_ABI_ENDIAN "be"#elif defined(ACC_ABI_LITTLE_ENDIAN)# define ACC_INFO_ABI_ENDIAN "le"#elif defined(ACC_ABI_NEUTRAL_ENDIAN)# define ACC_INFO_ABI_ENDIAN "neutral"#endif#if (ACC_SIZEOF_INT == 1 && ACC_SIZEOF_LONG == 2 && ACC_SIZEOF_VOID_P == 2)# define ACC_ABI_I8LP16 1# define ACC_INFO_ABI_PM "i8lp16"#elif (ACC_SIZEOF_INT == 2 && ACC_SIZEOF_LONG == 2 && ACC_SIZEOF_VOID_P == 2)# define ACC_ABI_ILP16 1# define ACC_INFO_ABI_PM "ilp16"#elif (ACC_SIZEOF_INT == 4 && ACC_SIZEOF_LONG == 4 && ACC_SIZEOF_VOID_P == 4)# define ACC_ABI_ILP32 1# define ACC_INFO_ABI_PM "ilp32"#elif (ACC_SIZEOF_INT == 4 && ACC_SIZEOF_LONG == 4 && ACC_SIZEOF_VOID_P == 8 && ACC_SIZEOF_SIZE_T == 8)# define ACC_ABI_LLP64 1# define ACC_INFO_ABI_PM "llp64"#elif (ACC_SIZEOF_INT == 4 && ACC_SIZEOF_LONG == 8 && ACC_SIZEOF_VOID_P == 8)# define ACC_ABI_LP64 1# define ACC_INFO_ABI_PM "lp64"#elif (ACC_SIZEOF_INT == 8 && ACC_SIZEOF_LONG == 8 && ACC_SIZEOF_VOID_P == 8)# define ACC_ABI_ILP64 1# define ACC_INFO_ABI_PM "ilp64"#elif (ACC_SIZEOF_INT == 4 && ACC_SIZEOF_LONG == 8 && ACC_SIZEOF_VOID_P == 4)# define ACC_ABI_IP32L64 1# define ACC_INFO_ABI_PM "ip32l64"#endif#if !defined(__ACC_LIBC_OVERRIDE)#if defined(ACC_LIBC_NAKED)# define ACC_INFO_LIBC "naked"#elif defined(ACC_LIBC_FREESTANDING)# define ACC_INFO_LIBC "freestanding"#elif defined(ACC_LIBC_MOSTLY_FREESTANDING)# define ACC_INFO_LIBC "mfreestanding"#elif defined(ACC_LIBC_ISOC90)# define ACC_INFO_LIBC "isoc90"#elif defined(ACC_LIBC_ISOC99)# define ACC_INFO_LIBC "isoc99"#elif defined(__dietlibc__)# define ACC_LIBC_DIETLIBC 1# define ACC_INFO_LIBC "dietlibc"#elif defined(_NEWLIB_VERSION)# define ACC_LIBC_NEWLIB 1# define ACC_INFO_LIBC "newlib"#elif defined(__UCLIBC__) && defined(__UCLIBC_MAJOR__) && defined(__UCLIBC_MINOR__)# if defined(__UCLIBC_SUBLEVEL__)# define ACC_LIBC_UCLIBC (__UCLIBC_MAJOR__ * 0x10000L + __UCLIBC_MINOR__ * 0x100 + __UCLIBC_SUBLEVEL__)# else# define ACC_LIBC_UCLIBC 0x00090bL# endif# define ACC_INFO_LIBC "uclibc"#elif defined(__GLIBC__) && defined(__GLIBC_MINOR__)# define ACC_LIBC_GLIBC (__GLIBC__ * 0x10000L + __GLIBC_MINOR__ * 0x100)# define ACC_INFO_LIBC "glibc"#elif (ACC_CC_MWERKS) && defined(__MSL__)# define ACC_LIBC_MSL __MSL__# define ACC_INFO_LIBC "msl"#elif 1 && defined(__IAR_SYSTEMS_ICC__)# define ACC_LIBC_ISOC90 1# define ACC_INFO_LIBC "isoc90"#else# define ACC_LIBC_DEFAULT 1# define ACC_INFO_LIBC "default"#endif#endif#if (ACC_CC_GNUC >= 0x020800ul)# define __acc_gnuc_extension__ __extension__#elif (ACC_CC_LLVM || ACC_CC_PATHSCALE)# define __acc_gnuc_extension__ __extension__#else# define __acc_gnuc_extension__#endif#if !defined(__acc_ua_volatile)# define __acc_ua_volatile volatile#endif#if !defined(__acc_alignof)#if (ACC_CC_CILLY || ACC_CC_GNUC || ACC_CC_LLVM || ACC_CC_PATHSCALE || ACC_CC_PGI)# define __acc_alignof(e) __alignof__(e)#elif (ACC_CC_INTELC && (__INTEL_COMPILER >= 700))# define __acc_alignof(e) __alignof__(e)#elif (ACC_CC_MSC && (_MSC_VER >= 1300))# define __acc_alignof(e) __alignof(e)#endif#endif#if defined(__acc_alignof)# define __acc_HAVE_alignof 1#endif#if !defined(__acc_constructor)#if (ACC_CC_GNUC >= 0x030400ul)# define __acc_constructor __attribute__((__constructor__,__used__))#elif (ACC_CC_GNUC >= 0x020700ul)# define __acc_constructor __attribute__((__constructor__))#elif (ACC_CC_LLVM || ACC_CC_PATHSCALE)# define __acc_constructor __attribute__((__constructor__))#endif#endif#if defined(__acc_constructor)# define __acc_HAVE_constructor 1#endif#if !defined(__acc_destructor)#if (ACC_CC_GNUC >= 0x030400ul)# define __acc_destructor __attribute__((__destructor__,__used__))#elif (ACC_CC_GNUC >= 0x020700ul)# define __acc_destructor __attribute__((__destructor__))#elif (ACC_CC_LLVM || ACC_CC_PATHSCALE)# define __acc_destructor __attribute__((__destructor__))#endif#endif#if defined(__acc_destructor)# define __acc_HAVE_destructor 1#endif#if defined(__acc_HAVE_destructor) && !defined(__acc_HAVE_constructor)# error "this should not happen"#endif#if !defined(__acc_inline)#if (ACC_CC_TURBOC && (__TURBOC__ <= 0x0295))#elif defined(__cplusplus)# define __acc_inline inline#elif (ACC_CC_BORLANDC && (__BORLANDC__ >= 0x0550))
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -