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

Showing the changes to libavfilter (1 of 1 file). Show all

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
35 %endif35 %endif
36 add srcq, widthq36 add srcq, widthq
37 neg widthq37 neg widthq
38 xor r4, r438 xor r4d, r4d
39 mov r5, widthq39 mov r5, widthq
40 jmp .start40 jmp .start
41.loop:41.loop:
42 popcnt r6d, r6d42 popcnt r6d, r6d
43 add r4, r643 add r4d, r6d
44.start:44.start:
45 movu m0, [srcq + r5]45 movu m0, [srcq + r5]
46 %if %1 == 846 %if %1 == 8
@@ -56,15 +56,15 @@ cglobal blackdetect_%1, 5, 7, 2, src, stride, width, height, threshold · 9 unmodified lines
56 ; handle tail by shifting away unused high elements56 ; handle tail by shifting away unused high elements
57 shlx r6d, r6d, r5d57 shlx r6d, r6d, r5d
58 popcnt r6d, r6d58 popcnt r6d, r6d
59 add r4, r659 add r4d, r6d
60 add srcq, strideq60 add srcq, strideq
61 mov r5, widthq61 mov r5, widthq
62 dec heightq62 dec heightq
63 jg .start63 jg .start
64 %if %1 > 864 %if %1 > 8
65 shr r4, 165 shr r4d, 1
66 %endif66 %endif
67 mov rax, r467 mov eax, r4d
68 RET68 RET
69%endmacro69%endmacro
70 70

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