We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e21ea15 commit 2999f58Copy full SHA for 2999f58
librapid/include/librapid/core/config.hpp
@@ -241,6 +241,22 @@
241
# ifndef LIBRAPID_MEM_ALIGN
242
# define LIBRAPID_MEM_ALIGN 16
243
# endif
244
+#elif defined(__ARM_NEON) || defined(__ARM_NEON__)
245
+# define LIBRAPID_NEON
246
+# define LIBRAPID_ARCH ARCH_NEON
247
+# define LIBRAPID_ARCH_NAME "NEON"
248
+
249
+# ifndef LIBRAPID_MEM_ALIGN
250
+# define LIBRAPID_MEM_ALIGN 16
251
+# endif
252
+#elif defined(__ARM_FEATURE_SVE)
253
+# define LIBRAPID_SVE
254
+# define LIBRAPID_ARCH ARCH_SVE
255
+# define LIBRAPID_ARCH_NAME "SVE"
256
257
258
+# define LIBRAPID_MEM_ALIGN 128 // SVE has a max vector length of 2048 bits
259
260
#elif defined(_M_IX86_FP) // Defined in MS compiler. 1: SSE, 2: SSE2
261
# if _M_IX86_FP == 1
262
# define LIBRAPID_SSE
0 commit comments