mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2026-01-01 03:12:16 +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) && \
|
#if !defined(LIBYUV_DISABLE_SME) && defined(CLANG_HAS_SME) && \
|
||||||
defined(__aarch64__)
|
defined(__aarch64__)
|
||||||
#define STREAMING_COMPATIBLE __arm_streaming_compatible
|
#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) &&
|
#endif // !defined(LIBYUV_DISABLE_SME) && defined(CLANG_HAS_SME) &&
|
||||||
// defined(__aarch64__)
|
// defined(__aarch64__)
|
||||||
|
|
||||||
|
|||||||
@ -805,8 +805,6 @@ __arm_locally_streaming static void HalfRow_16_SME(uint16_t* dst_ptr,
|
|||||||
const uint16_t* src_ptr,
|
const uint16_t* src_ptr,
|
||||||
ptrdiff_t src_stride,
|
ptrdiff_t src_stride,
|
||||||
int width) {
|
int width) {
|
||||||
int y1_fraction = 128;
|
|
||||||
int y0_fraction = 256 - y1_fraction;
|
|
||||||
const uint16_t* src_ptr1 = src_ptr + src_stride;
|
const uint16_t* src_ptr1 = src_ptr + src_stride;
|
||||||
|
|
||||||
int vl;
|
int vl;
|
||||||
@ -933,8 +931,6 @@ __arm_locally_streaming static void HalfRow_16To8_SME(uint8_t* dst_ptr,
|
|||||||
ptrdiff_t src_stride,
|
ptrdiff_t src_stride,
|
||||||
int scale,
|
int scale,
|
||||||
int width) {
|
int width) {
|
||||||
int y1_fraction = 128;
|
|
||||||
int y0_fraction = 256 - y1_fraction;
|
|
||||||
const uint16_t* src_ptr1 = src_ptr + src_stride;
|
const uint16_t* src_ptr1 = src_ptr + src_stride;
|
||||||
|
|
||||||
// 15 - clz(scale), + 8 to shift result into the high half of the lane to
|
// 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(orig_y);
|
||||||
|
free_aligned_buffer_page_end(dst_c);
|
||||||
|
free_aligned_buffer_page_end(dst_opt);
|
||||||
return max_diff;
|
return max_diff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user