cpu: compile-time RISC-V FPU detection

(cherry picked from commit 96ae63596e)
This commit is contained in:
Rémi Denis-Courmont 2022-01-29 16:38:35 +02:00
parent 9e07e155a9
commit 272dbce8e3
1 changed files with 5 additions and 0 deletions

View File

@ -181,6 +181,11 @@ VLC_API unsigned vlc_CPU(void);
# elif defined (__mips_hard_float)
# define HAVE_FPU 1
# elif defined (__riscv)
# ifdef __riscv_flen
# define HAVE_FPU 1
# endif
# else
/**
* Are single precision floating point operations "fast"?