diff options
author | Frank Barchard <fbarchard@google.com> | 2017-05-08 23:39:01 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-05-08 23:39:01 +0000 |
commit | c802d97f013cc20af2d0bb6a4d2473a16347552e (patch) | |
tree | 5beb299080f1b0137786bb7ae2cdb03b29396d8d | |
parent | c5595ebecf9b63bbf64f7dac4729343f4eb43824 (diff) | |
parent | fb8fba8060eb72fc8d33e3f92c3dc2ee2d79c0be (diff) | |
download | libyuv-c802d97f013cc20af2d0bb6a4d2473a16347552e.tar.gz |
fix for clang compile error on mips sgtu instruction.android-o-mr1-preview-2android-o-mr1-preview-1
am: fb8fba8060
Change-Id: I2783b43c53e4829f78b67daf83fa2c30ffb52f00
-rw-r--r-- | files/source/row_dspr2.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/files/source/row_dspr2.cc b/files/source/row_dspr2.cc index 466dd5d9..11f78e0d 100644 --- a/files/source/row_dspr2.cc +++ b/files/source/row_dspr2.cc @@ -68,7 +68,7 @@ void CopyRow_MIPS(const uint8* src, uint8* dst, int count) { "pref 0, 64(%[src]) \n" "pref 30, 32(%[dst]) \n" // In case the a1 > t9 don't use "pref 30" at all - "sgtu $v1, %[dst], $t9 \n" + "sltu $v1, $t9, %[dst] \n" "bgtz $v1, $loop16w \n" "nop \n" // otherwise, start with using pref30 @@ -119,7 +119,7 @@ void CopyRow_MIPS(const uint8* src, uint8* dst, int count) { "sw $t7, 60(%[dst]) \n" "addiu %[dst], %[dst], 64 \n" // adding 64 to dest - "sgtu $v1, %[dst], $t9 \n" + "sltu $v1, $t9, %[dst] \n" "bne %[dst], $a3, $loop16w \n" " addiu %[src], %[src], 64 \n" // adding 64 to src "move %[count], $t8 \n" @@ -221,7 +221,7 @@ void CopyRow_MIPS(const uint8* src, uint8* dst, int count) { "pref 30, 32(%[dst]) \n" // safe, as we have at least 64 bytes ahead // In case the a1 > t9 don't use "pref 30" at all - "sgtu $v1, %[dst], $t9 \n" + "sltu $v1, $t9, %[dst] \n" "bgtz $v1, $ua_loop16w \n" // skip "pref 30,64(a1)" for too short arrays " nop \n" @@ -292,7 +292,7 @@ void CopyRow_MIPS(const uint8* src, uint8* dst, int count) { "sw $t7, 60(%[dst]) \n" "addiu %[dst],%[dst],64 \n" // adding 64 to dest - "sgtu $v1,%[dst],$t9 \n" + "sltu $v1,$t9,%[dst] \n" "bne %[dst],$a3,$ua_loop16w \n" " addiu %[src],%[src],64 \n" // adding 64 to src "move %[count],$t8 \n" |