From 70e5c818603e9b83aac266f2e7750c0543cb19de Mon Sep 17 00:00:00 2001 From: "fbarchard@google.com" Date: Tue, 17 Mar 2015 17:56:20 +0000 Subject: [PATCH] copy width to int64 to pass to assembly to avoid warning on ios 64 bit for implicit: value size does not match register size specified by the constraint and modif BUG=413 TESTED=local ios 64 bit build R=tpsiaki@google.com Review URL: https://webrtc-codereview.appspot.com/45749004 git-svn-id: http://libyuv.googlecode.com/svn/trunk@1338 16f28f9a-4ce2-e073-06de-1de4eb20be90 --- source/row_neon64.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/source/row_neon64.cc b/source/row_neon64.cc index 379835fc7..b34239f27 100644 --- a/source/row_neon64.cc +++ b/source/row_neon64.cc @@ -517,6 +517,7 @@ void I422ToARGB4444Row_NEON(const uint8* src_y, void I400ToARGBRow_NEON(const uint8* src_y, uint8* dst_argb, int width) { + int64 width64 = (int64)(width); asm volatile ( YUV422TORGB_SETUP_REG "1: \n" @@ -529,7 +530,7 @@ void I400ToARGBRow_NEON(const uint8* src_y, "b.gt 1b \n" : "+r"(src_y), // %0 "+r"(dst_argb), // %1 - "+r"(width) // %2 + "+r"(width64) // %2 : [kUVBiasBGR]"r"(&kUVBiasBGR), [kYToRgb]"r"(&kYToRgb) : "cc", "memory", "v0", "v1", "v2", "v3", "v4", "v5", "v6", "v7", "v20", @@ -674,6 +675,7 @@ void NV21ToRGB565Row_NEON(const uint8* src_y, void YUY2ToARGBRow_NEON(const uint8* src_yuy2, uint8* dst_argb, int width) { + int64 width64 = (int64)(width); asm volatile ( YUV422TORGB_SETUP_REG "1: \n" @@ -686,7 +688,7 @@ void YUY2ToARGBRow_NEON(const uint8* src_yuy2, "b.gt 1b \n" : "+r"(src_yuy2), // %0 "+r"(dst_argb), // %1 - "+r"(width) // %2 + "+r"(width64) // %2 : [kUVBiasBGR]"r"(&kUVBiasBGR), [kYToRgb]"r"(&kYToRgb) : "cc", "memory", "v0", "v1", "v2", "v3", "v4", "v5", "v6", "v7", "v20", @@ -699,6 +701,7 @@ void YUY2ToARGBRow_NEON(const uint8* src_yuy2, void UYVYToARGBRow_NEON(const uint8* src_uyvy, uint8* dst_argb, int width) { + int64 width64 = (int64)(width); asm volatile ( YUV422TORGB_SETUP_REG "1: \n" @@ -711,7 +714,7 @@ void UYVYToARGBRow_NEON(const uint8* src_uyvy, "b.gt 1b \n" : "+r"(src_uyvy), // %0 "+r"(dst_argb), // %1 - "+r"(width) // %2 + "+r"(width64) // %2 : [kUVBiasBGR]"r"(&kUVBiasBGR), [kYToRgb]"r"(&kYToRgb) : "cc", "memory", "v0", "v1", "v2", "v3", "v4", "v5", "v6", "v7", "v20",