mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-24 12:34:51 +08:00
Compare commits
3 Commits
7fd0bd197e
...
86b09b2450
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
86b09b2450 | ||
|
|
45c7107f95 | ||
|
|
db5a71c528 |
@ -23,6 +23,9 @@ extern "C" {
|
||||
#if !defined(LIBYUV_DISABLE_SME) && defined(CLANG_HAS_SME) && \
|
||||
defined(__aarch64__)
|
||||
#define STREAMING_COMPATIBLE __arm_streaming_compatible
|
||||
#else // defined(LIBYUV_DISABLE_SME) || !defined(CLANG_HAS_SME) ||
|
||||
// !defined(__aarch64__)
|
||||
#define STREAMING_COMPATIBLE
|
||||
#endif // !defined(LIBYUV_DISABLE_SME) && defined(CLANG_HAS_SME) &&
|
||||
// defined(__aarch64__)
|
||||
|
||||
|
||||
@ -805,8 +805,6 @@ __arm_locally_streaming static void HalfRow_16_SME(uint16_t* dst_ptr,
|
||||
const uint16_t* src_ptr,
|
||||
ptrdiff_t src_stride,
|
||||
int width) {
|
||||
int y1_fraction = 128;
|
||||
int y0_fraction = 256 - y1_fraction;
|
||||
const uint16_t* src_ptr1 = src_ptr + src_stride;
|
||||
|
||||
int vl;
|
||||
@ -933,8 +931,6 @@ __arm_locally_streaming static void HalfRow_16To8_SME(uint8_t* dst_ptr,
|
||||
ptrdiff_t src_stride,
|
||||
int scale,
|
||||
int width) {
|
||||
int y1_fraction = 128;
|
||||
int y0_fraction = 256 - y1_fraction;
|
||||
const uint16_t* src_ptr1 = src_ptr + src_stride;
|
||||
|
||||
// 15 - clz(scale), + 8 to shift result into the high half of the lane to
|
||||
|
||||
@ -2523,6 +2523,8 @@ static int TestHalfFloatPlane(int benchmark_width,
|
||||
}
|
||||
|
||||
free_aligned_buffer_page_end(orig_y);
|
||||
free_aligned_buffer_page_end(dst_c);
|
||||
free_aligned_buffer_page_end(dst_opt);
|
||||
return max_diff;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user