summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorRémi Denis-Courmont <remi@remlab.net>2023-11-16 20:36:05 +0200
committerRémi Denis-Courmont <remi@remlab.net>2023-11-19 20:06:20 +0200
commit954d50e2ae1b2619af9bb5c0adb272eae6058499 (patch)
tree3cdac6c6fb93220a582b36b62bebc2a9ab0fe87e /configure
parenta9205620b19e0c25cf9f6165b0b3937edf9ce62e (diff)
riscv: set fast half-precision conversion
This is only supported at compilation time. If Zfhmin is supported, then conversions are fast, which is what the flag is used for. At this time, run-tiem detection is not possible, as in not supported by Linux. But even if it were, the current FFmpeg approach seems unable to deal with it (same problem as on x86, really).
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure b/configure
index d6e4a1e7df..6be849fc08 100755
--- a/configure
+++ b/configure
@@ -5413,6 +5413,9 @@ elif enabled riscv; then
if test_cpp_condition stddef.h "__riscv_zbb"; then
enable fast_clz
fi
+ if test_cpp_condition stddef.h "__riscv_zfhmin"; then
+ enable fast_float16
+ fi
elif enabled sparc; then