mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2026-01-01 03:12:16 +08:00
RVV: Enable RVV on GCC
GCC now supports vector segment load and store, which was previously missing; and the reason why it was disabled. Change-Id: I923fd8a15476de8dcc2103bb8335d4fcc3ca96a9
This commit is contained in:
parent
74ea9ed7c9
commit
3d5b135c3d
@ -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 <assert.h>
|
||||
#include <riscv_vector.h>
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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 <assert.h>
|
||||
#include <riscv_vector.h>
|
||||
#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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user