Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
6955e884
Commit
6955e884
authored
Nov 21, 2017
by
Martin Vignali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/huffyuvdsp : reorganize add_int16 asm
parent
7f9b67bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
6 deletions
+17
-6
huffyuvdsp.asm
libavcodec/x86/huffyuvdsp.asm
+17
-6
No files found.
libavcodec/x86/huffyuvdsp.asm
View file @
6955e884
...
@@ -26,21 +26,32 @@ SECTION .text
...
@@ -26,21 +26,32 @@ SECTION .text
%include
"libavcodec/x86/huffyuvdsp_template.asm"
%include
"libavcodec/x86/huffyuvdsp_template.asm"
%if
ARCH_X86_32
;------------------------------------------------------------------------------
INIT_MMX
mmx
; void (*add_int16)(uint16_t *dst, const uint16_t *src, unsigned mask, int w);
cglobal
add_int16
,
4
,
4
,
5
,
dst
,
src
,
mask
,
w
,
tmp
;------------------------------------------------------------------------------
INT16_LOOP
a
,
add
%endif
INIT_XMM
sse2
%macro
ADD_INT16
0
cglobal
add_int16
,
4
,
4
,
5
,
dst
,
src
,
mask
,
w
,
tmp
cglobal
add_int16
,
4
,
4
,
5
,
dst
,
src
,
mask
,
w
,
tmp
%if
mmsize
>
8
test
srcq
,
mmsize
-
1
test
srcq
,
mmsize
-
1
jnz
.
unaligned
jnz
.
unaligned
test
dstq
,
mmsize
-
1
test
dstq
,
mmsize
-
1
jnz
.
unaligned
jnz
.
unaligned
%endif
INT16_LOOP
a
,
add
INT16_LOOP
a
,
add
%if
mmsize
>
8
.
unaligned
:
.
unaligned
:
INT16_LOOP
u
,
add
INT16_LOOP
u
,
add
%endif
%endmacro
%if
ARCH_X86_32
INIT_MMX
mmx
ADD_INT16
%endif
INIT_XMM
sse2
ADD_INT16
; void add_hfyu_left_pred_bgr32(uint8_t *dst, const uint8_t *src,
; void add_hfyu_left_pred_bgr32(uint8_t *dst, const uint8_t *src,
; intptr_t w, uint8_t *left)
; intptr_t w, uint8_t *left)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment