From c9ab8ad8d9d1248fd8733d4924010efb8cf45ff9 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Tue, 17 Dec 2024 23:32:41 -0500
Subject: [PATCH] SDL_intrin.h: Added missing NEON and Altivec documentation.
---
include/SDL3/SDL_intrin.h | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/include/SDL3/SDL_intrin.h b/include/SDL3/SDL_intrin.h
index 534d85038e158..5f5805cc6f92e 100644
--- a/include/SDL3/SDL_intrin.h
+++ b/include/SDL3/SDL_intrin.h
@@ -75,6 +75,25 @@
*/
#define SDL_LASX_INTRINSICS 1
+/**
+ * Defined if (and only if) the compiler supports ARM NEON intrinsics.
+ *
+ * If this macro is defined, SDL will have already included `<armintr.h>`
+ * `<arm_neon.h>`, `<arm64intr.h>`, and `<arm64_neon.h>`, as appropriate.
+ *
+ * \since This macro is available since 3.1.3.
+ */
+#define SDL_NEON_INTRINSICS 1
+
+/**
+ * Defined if (and only if) the compiler supports PowerPC Altivec intrinsics.
+ *
+ * If this macro is defined, SDL will have already included `<altivec.h>`
+ *
+ * \since This macro is available since 3.1.3.
+ */
+#define SDL_ALTIVEC_INTRINSICS 1
+
/**
* Defined if (and only if) the compiler supports Intel MMX intrinsics.
*