summaryrefslogtreecommitdiff
path: root/vpx_ports/riscv.h
diff options
context:
space:
mode:
Diffstat (limited to 'vpx_ports/riscv.h')
-rw-r--r--vpx_ports/riscv.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/vpx_ports/riscv.h b/vpx_ports/riscv.h
new file mode 100644
index 000000000..7feb763d5
--- /dev/null
+++ b/vpx_ports/riscv.h
@@ -0,0 +1,26 @@
+/*
+ * Copyright (c) 2023 The WebM project authors. All Rights Reserved.
+ *
+ * Use of this source code is governed by a BSD-style license
+ * that can be found in the LICENSE file in the root of the source
+ * tree. An additional intellectual property rights grant can be found
+ * in the file PATENTS. All contributing project authors may
+ * be found in the AUTHORS file in the root of the source tree.
+ */
+
+#ifndef VPX_VPX_PORTS_RISCV_H_
+#define VPX_VPX_PORTS_RISCV_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define HAS_RVV 0x01
+
+int riscv_cpu_caps(void);
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
+#endif // VPX_VPX_PORTS_RISCV_H_ \ No newline at end of file