Commit 5ae0ad00 authored by Hendrik Leppkes's avatar Hendrik Leppkes

x86/h264_weight: use appropriate register size for weight parameters

Fixes trac 5579
Reviewed-by: 's avatarRonald S. Bultje <rsbultje@gmail.com>
Acked-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent a5fafabc
......@@ -134,16 +134,16 @@ WEIGHT_FUNC_HALF_MM 8, 8
mov off_regd, r7m
add off_regd, 1
or off_regd, 1
add r4, 1
cmp r6d, 128
add r4d, 1
cmp r6d, 128
je .nonnormal
cmp r5, 128
cmp r5d, 128
jne .normal
.nonnormal:
sar r5, 1
sar r6, 1
sar r5d, 1
sar r6d, 1
sar off_regd, 1
sub r4, 1
sub r4d, 1
.normal:
%if cpuflag(ssse3)
movd m4, r5d
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment