Skip to content

Commit f6b8c54

Browse files
committed
Revert "igzip/riscv64: Add RVV optimization for VLEN=128"
This reverts commit 7b5dd06.
1 parent 7b5dd06 commit f6b8c54

File tree

3 files changed

+2
-153
lines changed

3 files changed

+2
-153
lines changed

igzip/riscv64/Makefile.am

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,4 @@
3030
lsrc_riscv64 += \
3131
igzip/riscv64/igzip_multibinary_riscv64_dispatcher.c \
3232
igzip/riscv64/igzip_multibinary_riscv64.S \
33-
igzip/riscv64/igzip_isal_adler32_rvv.S \
34-
igzip/riscv64/igzip_isal_adler32_rvv128.S
33+
igzip/riscv64/igzip_isal_adler32_rvv.S

igzip/riscv64/igzip_isal_adler32_rvv128.S

Lines changed: 0 additions & 142 deletions
This file was deleted.

igzip/riscv64/igzip_multibinary_riscv64_dispatcher.c

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,14 @@
3131
extern uint32_t
3232
adler32_rvv(uint32_t, uint8_t *, uint64_t);
3333
extern uint32_t
34-
adler32_rvv128(uint32_t, uint8_t *, uint64_t);
35-
extern uint32_t
3634
adler32_base(uint32_t, uint8_t *, uint64_t);
3735

3836
DEFINE_INTERFACE_DISPATCHER(isal_adler32)
3937
{
4038
#if HAVE_RVV
4139
const unsigned long hwcap = getauxval(AT_HWCAP);
42-
if (hwcap & HWCAP_RV('V')) {
43-
unsigned long vlenb;
44-
__asm__ volatile ("csrr %0, vlenb" : "=r"(vlenb));
45-
if (vlenb == 16)
46-
return adler32_rvv128;
47-
else
40+
if (hwcap & HWCAP_RV('V'))
4841
return adler32_rvv;
49-
}
5042
else
5143
#endif
5244
return adler32_base;

0 commit comments

Comments
 (0)