Browse Source

SDL_intrin.h: Added missing NEON and Altivec documentation.

Ryan C. Gordon 4 tháng trước cách đây
mục cha
commit
c9ab8ad8d9
1 tập tin đã thay đổi với 19 bổ sung0 xóa
  1. 19 0
      include/SDL3/SDL_intrin.h

+ 19 - 0
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.
  *