aboutsummaryrefslogtreecommitdiff
path: root/src/cpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu.h')
-rw-r--r--src/cpu.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cpu.h b/src/cpu.h
index 8f70fef..c9009c7 100644
--- a/src/cpu.h
+++ b/src/cpu.h
@@ -37,8 +37,12 @@
#if ARCH_AARCH64 || ARCH_ARM
#include "src/arm/cpu.h"
+#elif ARCH_LOONGARCH
+#include "src/loongarch/cpu.h"
#elif ARCH_PPC64LE
#include "src/ppc/cpu.h"
+#elif ARCH_RISCV
+#include "src/riscv/cpu.h"
#elif ARCH_X86
#include "src/x86/cpu.h"
#endif
@@ -64,6 +68,10 @@ static ALWAYS_INLINE unsigned dav1d_get_cpu_flags(void) {
#if defined(__VSX__)
flags |= DAV1D_PPC_CPU_FLAG_VSX;
#endif
+#elif ARCH_RISCV
+#if defined(__riscv_v)
+ flags |= DAV1D_RISCV_CPU_FLAG_V;
+#endif
#elif ARCH_X86
#if defined(__AVX512F__) && defined(__AVX512CD__) && \
defined(__AVX512BW__) && defined(__AVX512DQ__) && \