mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
chore: Rerun ./autogen.sh --maintainer
This commit is contained in:
parent
edf46621f3
commit
be81ebe1a4
18
configure
vendored
18
configure
vendored
@ -15733,10 +15733,10 @@ printf "%s\n" "#define PNG_RISCV_RVV_API_SUPPORTED /**/" >>confdefs.h
|
||||
printf "%s\n" "#define PNG_RISCV_RVV_OPT 2" >>confdefs.h
|
||||
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-riscv-rvv: please specify 'check' or 'api', if
|
||||
you want the optimizations unconditionally pass e.g. '-march=rv64gv'
|
||||
you want the optimizations unconditionally pass e.g. '-march=rv64gv1p0'
|
||||
to the compiler." >&5
|
||||
printf "%s\n" "$as_me: WARNING: --enable-riscv-rvv: please specify 'check' or 'api', if
|
||||
you want the optimizations unconditionally pass e.g. '-march=rv64gv'
|
||||
you want the optimizations unconditionally pass e.g. '-march=rv64gv1p0'
|
||||
to the compiler." >&2;};;
|
||||
*)
|
||||
as_fn_error $? "--enable-riscv-rvv=${enable_riscv_rvv}: invalid value" "$LINENO" 5
|
||||
@ -15755,13 +15755,21 @@ then
|
||||
printf %s "checking whether to use RISC-V RVV intrinsics... " >&6; }
|
||||
|
||||
save_CFLAGS=$CFLAGS
|
||||
CFLAGS="$CFLAGS -march=rv64gv"
|
||||
CFLAGS="$CFLAGS -march=rv64gv1p0"
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
#include <riscv_vector.h>
|
||||
int main(){
|
||||
return 0;
|
||||
#include <asm/hwcap.h>
|
||||
#ifndef COMPAT_HWCAP_ISA_V /* added in linux-6.5 */
|
||||
#error "COMPAT_HWCAP_ISA_V is not available"
|
||||
#endif
|
||||
int main() {
|
||||
const float src[] = { 0.0f, 0.0f, 0.0f, 0.0f };
|
||||
uint64_t ptr[2] = {0x0908060504020100, 0xFFFFFFFF0E0D0C0A};
|
||||
vuint8m1_t a = __riscv_vreinterpret_v_u64m1_u8m1(__riscv_vle64_v_u64m1(ptr, 2));
|
||||
vfloat32m1_t val = __riscv_vle32_v_f32m1((const float*)(src), 4);
|
||||
return (int)__riscv_vfmv_f_s_f32m1_f32(val);
|
||||
}
|
||||
_ACEOF
|
||||
if ac_fn_c_try_compile "$LINENO"
|
||||
|
Loading…
x
Reference in New Issue
Block a user