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
4db96649
Commit
4db96649
authored
Feb 14, 2013
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avutil: Ensure that emms_c is always defined, even on non-x86
parent
759a3a21
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
internal.h
libavutil/internal.h
+4
-0
emms.h
libavutil/x86/emms.h
+2
-3
No files found.
libavutil/internal.h
View file @
4db96649
...
@@ -43,6 +43,10 @@
...
@@ -43,6 +43,10 @@
# include "x86/emms.h"
# include "x86/emms.h"
#endif
#endif
#ifndef emms_c
# define emms_c()
#endif
#ifndef attribute_align_arg
#ifndef attribute_align_arg
#if ARCH_X86_32 && AV_GCC_VERSION_AT_LEAST(4,2)
#if ARCH_X86_32 && AV_GCC_VERSION_AT_LEAST(4,2)
# define attribute_align_arg __attribute__((force_align_arg_pointer))
# define attribute_align_arg __attribute__((force_align_arg_pointer))
...
...
libavutil/x86/emms.h
View file @
4db96649
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
void
avpriv_emms_yasm
(
void
);
void
avpriv_emms_yasm
(
void
);
#if HAVE_MMX_INLINE
#if HAVE_MMX_INLINE
# define emms_c emms_c
/**
/**
* Empty mmx state.
* Empty mmx state.
* this must be called between any dsp function and float/double code.
* this must be called between any dsp function and float/double code.
...
@@ -37,10 +38,8 @@ static av_always_inline void emms_c(void)
...
@@ -37,10 +38,8 @@ static av_always_inline void emms_c(void)
#elif HAVE_MMX && HAVE_MM_EMPTY
#elif HAVE_MMX && HAVE_MM_EMPTY
# include <mmintrin.h>
# include <mmintrin.h>
# define emms_c _mm_empty
# define emms_c _mm_empty
#elif HAVE_MMX
&& HAVE_YASM
#elif HAVE_MMX
_EXTERNAL
# define emms_c avpriv_emms_yasm
# define emms_c avpriv_emms_yasm
#else
# define emms_c()
#endif
/* HAVE_MMX_INLINE */
#endif
/* HAVE_MMX_INLINE */
#endif
/* AVUTIL_X86_EMMS_H */
#endif
/* AVUTIL_X86_EMMS_H */
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