diff --git a/source/row_rvv.cc b/source/row_rvv.cc index 07606d7a8..0bdcd879b 100644 --- a/source/row_rvv.cc +++ b/source/row_rvv.cc @@ -17,9 +17,8 @@ #include "libyuv/row.h" -// This module is for clang rvv. GCC hasn't supported segment load & store. -#if !defined(LIBYUV_DISABLE_RVV) && defined(__riscv_vector) && \ - defined(__clang__) +// This module is for RVV (RISC-V Vector extension) +#if !defined(LIBYUV_DISABLE_RVV) && defined(__riscv_vector) #include #include @@ -2595,5 +2594,4 @@ void ARGBCopyYToAlphaRow_RVV(const uint8_t* src, uint8_t* dst, int width) { } // namespace libyuv #endif -#endif // !defined(LIBYUV_DISABLE_RVV) && defined(__riscv_vector) && - // defined(__clang__) +#endif // !defined(LIBYUV_DISABLE_RVV) && defined(__riscv_vector) diff --git a/source/scale_rvv.cc b/source/scale_rvv.cc index 877ccdf96..60310e319 100644 --- a/source/scale_rvv.cc +++ b/source/scale_rvv.cc @@ -18,9 +18,8 @@ #include "libyuv/row.h" #include "libyuv/scale_row.h" -// This module is for clang rvv. GCC hasn't supported segment load & store. -#if !defined(LIBYUV_DISABLE_RVV) && defined(__riscv_vector) && \ - defined(__clang__) +// This module is for RVV (RISC-V Vector extension) +#if !defined(LIBYUV_DISABLE_RVV) && defined(__riscv_vector) #include #include #ifdef __cplusplus @@ -1967,5 +1966,4 @@ void ScaleUVRowUp2_Bilinear_RVV(const uint8_t* src_ptr, } // namespace libyuv #endif -#endif // !defined(LIBYUV_DISABLE_RVV) && defined(__riscv_vector) && - // defined(__clang__) +#endif // !defined(LIBYUV_DISABLE_RVV) && defined(__riscv_vector)