summaryrefslogtreecommitdiff
path: root/neozip/arch/power/power_natives.h
diff options
context:
space:
mode:
Diffstat (limited to 'neozip/arch/power/power_natives.h')
-rw-r--r--neozip/arch/power/power_natives.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/neozip/arch/power/power_natives.h b/neozip/arch/power/power_natives.h
new file mode 100644
index 0000000000..59ec8a8aed
--- /dev/null
+++ b/neozip/arch/power/power_natives.h
@@ -0,0 +1,27 @@
+/* power_natives.h -- POWER compile-time feature detection macros.
+ * For conditions of distribution and use, see copyright notice in zlib.h
+ */
+
+#ifndef POWER_NATIVES_H_
+#define POWER_NATIVES_H_
+
+#if defined(__ALTIVEC__)
+# ifdef PPC_VMX
+# define PPC_VMX_NATIVE
+# endif
+#endif
+#if defined(_ARCH_PWR8) && defined(__VSX__)
+# ifdef POWER8_VSX
+# define POWER8_VSX_NATIVE
+# endif
+# ifdef POWER8_VSX_CRC32
+# define POWER8_VSX_CRC32_NATIVE
+# endif
+#endif
+#if defined(_ARCH_PWR9)
+# ifdef POWER9
+# define POWER9_NATIVE
+# endif
+#endif
+
+#endif /* POWER_NATIVES_H_ */