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
710441c2
Commit
710441c2
authored
Apr 01, 2009
by
David Conrad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add SSE4 detection support
Originally committed as revision 18302 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
41913a35
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
avcodec.h
libavcodec/avcodec.h
+2
-0
cpuid.c
libavcodec/x86/cpuid.c
+8
-2
No files found.
libavcodec/avcodec.h
View file @
710441c2
...
...
@@ -1462,6 +1462,8 @@ typedef struct AVCodecContext {
#define FF_MM_3DNOWEXT 0x0020 ///< AMD 3DNowExt
#define FF_MM_SSE3 0x0040 ///< Prescott SSE3 functions
#define FF_MM_SSSE3 0x0080 ///< Conroe SSSE3 functions
#define FF_MM_SSE4 0x0100 ///< Penryn SSE4.1 functions
#define FF_MM_SSE42 0x0200 ///< Nehalem SSE4.2 functions
#define FF_MM_IWMMXT 0x0100 ///< XScale IWMMXT
#define FF_MM_ALTIVEC 0x0001 ///< standard AltiVec
...
...
libavcodec/x86/cpuid.c
View file @
710441c2
...
...
@@ -85,7 +85,11 @@ int mm_support(void)
if
(
ecx
&
1
)
rval
|=
FF_MM_SSE3
;
if
(
ecx
&
0x00000200
)
rval
|=
FF_MM_SSSE3
rval
|=
FF_MM_SSSE3
;
if
(
ecx
&
0x00080000
)
rval
|=
FF_MM_SSE4
;
if
(
ecx
&
0x00100000
)
rval
|=
FF_MM_SSE42
;
#endif
;
}
...
...
@@ -105,13 +109,15 @@ int mm_support(void)
}
#if 0
av_log(NULL, AV_LOG_DEBUG, "%s%s%s%s%s%s%s%s\n",
av_log(NULL, AV_LOG_DEBUG, "%s%s%s%s%s%s%s%s
%s%s
\n",
(rval&FF_MM_MMX) ? "MMX ":"",
(rval&FF_MM_MMXEXT) ? "MMX2 ":"",
(rval&FF_MM_SSE) ? "SSE ":"",
(rval&FF_MM_SSE2) ? "SSE2 ":"",
(rval&FF_MM_SSE3) ? "SSE3 ":"",
(rval&FF_MM_SSSE3) ? "SSSE3 ":"",
(rval&FF_MM_SSE4) ? "SSE4.1 ":"",
(rval&FF_MM_SSE42) ? "SSE4.2 ":"",
(rval&FF_MM_3DNOW) ? "3DNow ":"",
(rval&FF_MM_3DNOWEXT) ? "3DNowExt ":"");
#endif
...
...
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