diff options
author | Johann <johannkoenig@google.com> | 2012-06-26 11:37:33 -0700 |
---|---|---|
committer | Johann <johannkoenig@google.com> | 2012-07-27 16:15:31 -0700 |
commit | 1161055129b6bd9ad61cba336ccc09e1e25ca7b3 (patch) | |
tree | 09438fc7774293dde03fb55d037ed148dabfbaa6 /vp8/common/x86/sad_sse2.asm | |
parent | aa4f9dd153a07b3f3aaff102e37b008bfd1678c9 (diff) | |
download | libvpx-1161055129b6bd9ad61cba336ccc09e1e25ca7b3.tar libvpx-1161055129b6bd9ad61cba336ccc09e1e25ca7b3.tar.gz libvpx-1161055129b6bd9ad61cba336ccc09e1e25ca7b3.tar.bz2 libvpx-1161055129b6bd9ad61cba336ccc09e1e25ca7b3.zip |
Be consistent with SAD values
SAD returns unsigned values. Make all the declarations the same.
Remove bestsad initialization and check. It is always set to the
result of a SAD call so it will never remain UINT_MAX
Use ja instead of jg to test unsigned comparison instead of signed.
Update test.
Change-Id: I46336ab45f4e60fc37caf20bd36bc5782079c7a5
Diffstat (limited to 'vp8/common/x86/sad_sse2.asm')
-rw-r--r-- | vp8/common/x86/sad_sse2.asm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vp8/common/x86/sad_sse2.asm b/vp8/common/x86/sad_sse2.asm index 290e6763c..8d86abc07 100644 --- a/vp8/common/x86/sad_sse2.asm +++ b/vp8/common/x86/sad_sse2.asm @@ -115,7 +115,7 @@ sym(vp8_sad8x16_wmt): movq rax, mm7 cmp eax, arg(4) - jg .x8x16sad_wmt_early_exit + ja .x8x16sad_wmt_early_exit movq mm0, QWORD PTR [rsi] movq mm1, QWORD PTR [rdi] @@ -176,7 +176,7 @@ sym(vp8_sad8x8_wmt): movq rax, mm7 cmp eax, arg(4) - jg .x8x8sad_wmt_early_exit + ja .x8x8sad_wmt_early_exit movq mm0, QWORD PTR [rsi] movq mm1, QWORD PTR [rdi] @@ -285,7 +285,7 @@ sym(vp8_sad16x8_wmt): movq rax, mm7 cmp eax, arg(4) - jg .x16x8sad_wmt_early_exit + ja .x16x8sad_wmt_early_exit movq mm0, QWORD PTR [rsi] movq mm2, QWORD PTR [rsi+8] |