diff options
author | Vignesh Venkatasubramanian <vigneshv@google.com> | 2023-06-12 23:55:07 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2023-06-12 23:55:07 +0000 |
commit | 1f9deebc6ecf78b637dff50d62772b48332ea5ea (patch) | |
tree | 303e8eabb435a80ebec36a19c23ca85744d58fb5 /files/include/libyuv/cpu_id.h | |
parent | 435db9f11b09187e0d60683813a28d07cc13166b (diff) | |
parent | 8e521e2ea589b4cafb788330f83037a0413f200a (diff) | |
download | libyuv-1f9deebc6ecf78b637dff50d62772b48332ea5ea.tar.gz |
Merge "libyuv: Update to r1871 (2a6cb743)" am: 8e521e2ea5
Original change: https://android-review.googlesource.com/c/platform/external/libyuv/+/2622518
Change-Id: I677290d9641c9a7a343f79cf385e88af70ec589d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'files/include/libyuv/cpu_id.h')
-rw-r--r-- | files/include/libyuv/cpu_id.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/files/include/libyuv/cpu_id.h b/files/include/libyuv/cpu_id.h index fb90c6c7..203f7e0d 100644 --- a/files/include/libyuv/cpu_id.h +++ b/files/include/libyuv/cpu_id.h @@ -55,6 +55,11 @@ static const int kCpuHasLOONGARCH = 0x2000000; static const int kCpuHasLSX = 0x4000000; static const int kCpuHasLASX = 0x8000000; +// These flags are only valid on RISCV processors. +static const int kCpuHasRISCV = 0x10000000; +static const int kCpuHasRVV = 0x20000000; +static const int kCpuHasRVVZVFH = 0x40000000; + // Optional init function. TestCpuFlag does an auto-init. // Returns cpu_info flags. LIBYUV_API @@ -78,6 +83,8 @@ LIBYUV_API int ArmCpuCaps(const char* cpuinfo_name); LIBYUV_API int MipsCpuCaps(const char* cpuinfo_name); +LIBYUV_API +int RiscvCpuCaps(const char* cpuinfo_name); // For testing, allow CPU flags to be disabled. // ie MaskCpuFlags(~kCpuHasSSSE3) to disable SSSE3. |