History

avfilter/x86/vf_blackdetect: don't use rax to return a 32bit integer

Fixes compilation on x86_32.

James Almer committed 1 year ago

Commit f2631921 parent a218caf1 file · +5 −5Browse files

Unified · Split

libavfilter/x86/vf_blackdetect.asm+5−5
@@ -35,12 +35,12 @@ cglobal blackdetect_%1, 5, 7, 2, src, stride, width, height, threshold · 34 unmodified lines
3535 %endif
3636 add srcq, widthq
3737 neg widthq
38− xor r4, r4
38+ xor r4d, r4d
3939 mov r5, widthq
4040 jmp .start
4141 .loop:
4242 popcnt r6d, r6d
43− add r4, r6
43+ add r4d, r6d
4444 .start:
4545 movu m0, [srcq + r5]
4646 %if %1 == 8
@@ -56,15 +56,15 @@ cglobal blackdetect_%1, 5, 7, 2, src, stride, width, height, threshold · 9 unmodified lines
5656 ; handle tail by shifting away unused high elements
5757 shlx r6d, r6d, r5d
5858 popcnt r6d, r6d
59− add r4, r6
59+ add r4d, r6d
6060 add srcq, strideq
6161 mov r5, widthq
6262 dec heightq
6363 jg .start
6464 %if %1 > 8
65− shr r4, 1
65+ shr r4d, 1
6666 %endif
67− mov rax, r4
67+ mov eax, r4d
6868 RET
6969 %endmacro
7070

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t