summaryrefslogtreecommitdiff
path: root/libavutil/avassert.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-10-21 12:50:03 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2016-10-22 13:50:09 +0200
commitf5495c970cf2a8745a2f4520d543cb215c06e545 (patch)
treeb38912ca1d258a74224c0fb56694dec8b5b1aff9 /libavutil/avassert.h
parent2c1d38d1e1c2617f51bbb833bb7fe1298644cd21 (diff)
avutil/avassert: Add av_assertX_fpu()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavutil/avassert.h')
-rw-r--r--libavutil/avassert.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libavutil/avassert.h b/libavutil/avassert.h
index f473637649..46f3fea580 100644
--- a/libavutil/avassert.h
+++ b/libavutil/avassert.h
@@ -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 */