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
f5495c97
Commit
f5495c97
authored
Oct 21, 2016
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avutil/avassert: Add av_assertX_fpu()
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
2c1d38d1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
1 deletion
+26
-1
APIchanges
doc/APIchanges
+3
-0
avassert.h
libavutil/avassert.h
+9
-0
utils.c
libavutil/utils.c
+13
-0
version.h
libavutil/version.h
+1
-1
No files found.
doc/APIchanges
View file @
f5495c97
...
...
@@ -15,6 +15,9 @@ libavutil: 2015-08-28
API changes, most recent first:
2016-10-22 - xxxxxxx - lavu 55.33.100 - avassert.h
Add av_assert0_fpu() / av_assert2_fpu()
2016-xx-xx - xxxxxxx - lavc 57.61.100 / lavc 57.24.0 - avcodec.h
Decoders now export the frame timestamp as AVFrame.pts. It was
previously exported as AVFrame.pkt_pts, which is now deprecated.
...
...
libavutil/avassert.h
View file @
f5495c97
...
...
@@ -59,8 +59,17 @@
*/
#if defined(ASSERT_LEVEL) && ASSERT_LEVEL > 1
#define av_assert2(cond) av_assert0(cond)
#define av_assert2_fpu() av_assert0_fpu()
#else
#define av_assert2(cond) ((void)0)
#define av_assert2_fpu() ((void)0)
#endif
/**
* Assert that floating point opperations can be executed.
*
* This will av_assert0() that the cpu is not in MMX state on X86
*/
void
av_assert0_fpu
(
void
);
#endif
/* AVUTIL_AVASSERT_H */
libavutil/utils.c
View file @
f5495c97
...
...
@@ -125,3 +125,16 @@ AVRational av_get_time_base_q(void)
{
return
(
AVRational
){
1
,
AV_TIME_BASE
};
}
void
av_assert0_fpu
(
void
)
{
#if HAVE_MMX_INLINE
uint16_t
state
[
14
];
__asm
volatile
(
"fstenv %0
\n\t
"
:
"+m"
(
state
)
:
:
"memory"
);
av_assert0
((
state
[
4
]
&
3
)
==
3
);
#endif
}
libavutil/version.h
View file @
f5495c97
...
...
@@ -79,7 +79,7 @@
*/
#define LIBAVUTIL_VERSION_MAJOR 55
#define LIBAVUTIL_VERSION_MINOR 3
2
#define LIBAVUTIL_VERSION_MINOR 3
3
#define LIBAVUTIL_VERSION_MICRO 100
#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
...
...
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