Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
481741ec
Commit
481741ec
authored
Aug 01, 2018
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86/pixelutils: don't use the AVX2 functions on CPUs known to be slow with them
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
d5b3077e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
pixelutils_init.c
libavutil/x86/pixelutils_init.c
+1
-1
No files found.
libavutil/x86/pixelutils_init.c
View file @
481741ec
...
@@ -84,7 +84,7 @@ void ff_pixelutils_sad_init_x86(av_pixelutils_sad_fn *sad, int aligned)
...
@@ -84,7 +84,7 @@ void ff_pixelutils_sad_init_x86(av_pixelutils_sad_fn *sad, int aligned)
}
}
}
}
if
(
EXTERNAL_AVX2
(
cpu_flags
))
{
if
(
EXTERNAL_AVX2
_FAST
(
cpu_flags
))
{
switch
(
aligned
)
{
switch
(
aligned
)
{
case
0
:
sad
[
4
]
=
ff_pixelutils_sad_32x32_avx2
;
break
;
// src1 unaligned, src2 unaligned
case
0
:
sad
[
4
]
=
ff_pixelutils_sad_32x32_avx2
;
break
;
// src1 unaligned, src2 unaligned
case
1
:
sad
[
4
]
=
ff_pixelutils_sad_u_32x32_avx2
;
break
;
// src1 aligned, src2 unaligned
case
1
:
sad
[
4
]
=
ff_pixelutils_sad_u_32x32_avx2
;
break
;
// src1 aligned, src2 unaligned
...
...
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