summaryrefslogtreecommitdiff
path: root/neozip/arch/riscv/riscv_natives.h
diff options
context:
space:
mode:
Diffstat (limited to 'neozip/arch/riscv/riscv_natives.h')
-rw-r--r--neozip/arch/riscv/riscv_natives.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/neozip/arch/riscv/riscv_natives.h b/neozip/arch/riscv/riscv_natives.h
new file mode 100644
index 0000000000..38d7aba648
--- /dev/null
+++ b/neozip/arch/riscv/riscv_natives.h
@@ -0,0 +1,19 @@
+/* riscv_natives.h -- RISCV compile-time feature detection macros.
+ * For conditions of distribution and use, see copyright notice in zlib.h
+ */
+
+#ifndef RISCV_NATIVES_H_
+#define RISCV_NATIVES_H_
+
+#if defined(__riscv_v) && defined(__linux__)
+# ifdef RISCV_RVV
+# define RISCV_RVV_NATIVE
+# endif
+#endif
+#if defined(__riscv_zbc)
+# ifdef RISCV_CRC32_ZBC
+# define RISCV_ZBC_NATIVE
+# endif
+#endif
+
+#endif /* RISCV_NATIVES_H_ */