Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Side by Side Diff: source/scale_neon64.cc

Issue 2344203003: fix multi-line comment warning (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « source/scale_neon.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2014 The LibYuv Project Authors. All rights reserved. 2 * Copyright 2014 The LibYuv Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 // TODO(Yang Zhang): Investigate less load instructions for 581 // TODO(Yang Zhang): Investigate less load instructions for
582 // the x/dx stepping 582 // the x/dx stepping
583 #define LOAD2_DATA8_LANE(n) \ 583 #define LOAD2_DATA8_LANE(n) \
584 "lsr %5, %3, #16 \n" \ 584 "lsr %5, %3, #16 \n" \
585 "add %6, %1, %5 \n" \ 585 "add %6, %1, %5 \n" \
586 "add %3, %3, %4 \n" \ 586 "add %3, %3, %4 \n" \
587 MEMACCESS(6) \ 587 MEMACCESS(6) \
588 "ld2 {v4.b, v5.b}["#n"], [%6] \n" 588 "ld2 {v4.b, v5.b}["#n"], [%6] \n"
589 589
590 // The NEON version mimics this formula (from row_common.cc): 590 // The NEON version mimics this formula (from row_common.cc):
591 // #define BLENDER(a, b, f) (uint8)((int)(a) + \ 591 // #define BLENDER(a, b, f) (uint8)((int)(a) +
592 // ((((int)((f)) * ((int)(b) - (int)(a))) + 0x8000) >> 16)) 592 // ((((int)((f)) * ((int)(b) - (int)(a))) + 0x8000) >> 16))
593 593
594 void ScaleFilterCols_NEON(uint8* dst_ptr, const uint8* src_ptr, 594 void ScaleFilterCols_NEON(uint8* dst_ptr, const uint8* src_ptr,
595 int dst_width, int x, int dx) { 595 int dst_width, int x, int dx) {
596 int dx_offset[4] = {0, 1, 2, 3}; 596 int dx_offset[4] = {0, 1, 2, 3};
597 int* tmp = dx_offset; 597 int* tmp = dx_offset;
598 const uint8* src_tmp = src_ptr; 598 const uint8* src_tmp = src_ptr;
599 int64 dst_width64 = (int64) dst_width; // Work around ios 64 bit warning. 599 int64 dst_width64 = (int64) dst_width; // Work around ios 64 bit warning.
600 int64 x64 = (int64) x; 600 int64 x64 = (int64) x;
601 int64 dx64 = (int64) dx; 601 int64 dx64 = (int64) dx;
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
1037 } 1037 }
1038 1038
1039 #undef LOAD2_DATA32_LANE 1039 #undef LOAD2_DATA32_LANE
1040 1040
1041 #endif // !defined(LIBYUV_DISABLE_NEON) && defined(__aarch64__) 1041 #endif // !defined(LIBYUV_DISABLE_NEON) && defined(__aarch64__)
1042 1042
1043 #ifdef __cplusplus 1043 #ifdef __cplusplus
1044 } // extern "C" 1044 } // extern "C"
1045 } // namespace libyuv 1045 } // namespace libyuv
1046 #endif 1046 #endif
OLDNEW
« no previous file with comments | « source/scale_neon.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698