Refresh 16.5

This commit is contained in:
username
2025-02-16 23:53:25 -05:00
parent 9921382a68
commit 34c7de55c3
409 changed files with 25674 additions and 17452 deletions

View File

@@ -1,18 +1,28 @@
#ifndef MACROS_H
#define MACROS_H
// Check for egcs compiler
#if defined (__GNUC__) && (__GNUC__ == 2) && (__GNUC_MINOR__ == 91)
#define EGCS_GCC
#endif
#ifndef _LANGUAGE_ASSEMBLY
#include "platform_info.h"
// Since we are using both compilers to match iQue, ignore these errors.
#ifndef EGCS_GCC
#ifndef __sgi
#define GLOBAL_ASM(...)
#endif
#if !defined(__sgi) && (!defined(NON_MATCHING) || !defined(AVOID_UB))
// asm-process isn't supported outside of IDO, and undefined behavior causes
// crashes.
// asm-process isn't supported outside of IDO, and undefined behavior causes crashes.
#error Matching build is only possible on IDO; please build with NON_MATCHING=1.
#endif
#endif
#define ARRAY_COUNT(arr) (s32)(sizeof(arr) / sizeof(arr[0]))
#define GLUE(a, b) a ## b
@@ -46,14 +56,14 @@
#endif
// Align to 8-byte boundary for DMA requirements
#ifdef __GNUC__
#if defined(__GNUC__) && !defined(EGCS_GCC)
#define ALIGNED8 __attribute__((aligned(8)))
#else
#define ALIGNED8
#endif
// Align to 16-byte boundary for audio lib requirements
#ifdef __GNUC__
#if defined(__GNUC__) && !defined(EGCS_GCC)
#define ALIGNED16 __attribute__((aligned(16)))
#else
#define ALIGNED16
@@ -88,4 +98,6 @@
#define FORCE_BSS
#endif
#endif
#endif // MACROS_H