浏览代码

SDL_intrin.h: Added missing NEON and Altivec documentation.

Ryan C. Gordon 7 月之前
父节点
当前提交
c9ab8ad8d9
共有 1 个文件被更改,包括 19 次插入0 次删除
  1. 19 0
      include/SDL3/SDL_intrin.h

+ 19 - 0
include/SDL3/SDL_intrin.h

@@ -75,6 +75,25 @@
  */
  */
 #define SDL_LASX_INTRINSICS 1
 #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.
  * Defined if (and only if) the compiler supports Intel MMX intrinsics.
  *
  *