x86/h264_weight: use appropriate register size for weight parameters

Fixes trac 5579

Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Acked-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Hendrik Leppkes 2016-09-23 09:52:48 +02:00
parent a5fafabc84
commit 5ae0ad001a
1 changed files with 6 additions and 6 deletions

View File

@ -134,16 +134,16 @@ WEIGHT_FUNC_HALF_MM 8, 8
mov off_regd, r7m mov off_regd, r7m
add off_regd, 1 add off_regd, 1
or off_regd, 1 or off_regd, 1
add r4, 1 add r4d, 1
cmp r6d, 128 cmp r6d, 128
je .nonnormal je .nonnormal
cmp r5, 128 cmp r5d, 128
jne .normal jne .normal
.nonnormal: .nonnormal:
sar r5, 1 sar r5d, 1
sar r6, 1 sar r6d, 1
sar off_regd, 1 sar off_regd, 1
sub r4, 1 sub r4d, 1
.normal: .normal:
%if cpuflag(ssse3) %if cpuflag(ssse3)
movd m4, r5d movd m4, r5d