summaryrefslogtreecommitdiff
path: root/libavutil/internal.h
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2012-08-08 17:13:26 +0100
committerMans Rullgard <mans@mansr.com>2012-08-09 00:58:20 +0100
commitd7a4f8f8b9a4bc309d4d5ab067cfba945e690c0c (patch)
treecdf4e8c5b08c4766669d85ab14f8150b121f3c6c /libavutil/internal.h
parent070a402b60cb4ebc6fd2ba59c13758811815bb19 (diff)
Move MASK_ABS macro to libavcodec/mathops.h
This macro is only used in two places, both in libavcodec, so this is a more sensible place for it. Two small tweaks to the macro are made: - removing the trailing semicolon - dropping unnecessary 'volatile' from the x86 asm Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavutil/internal.h')
-rw-r--r--libavutil/internal.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/libavutil/internal.h b/libavutil/internal.h
index 0a7ed83c4f..4c1d2f6648 100644
--- a/libavutil/internal.h
+++ b/libavutil/internal.h
@@ -96,22 +96,6 @@ struct AVDictionary {
#define av_abort() do { av_log(NULL, AV_LOG_ERROR, "Abort at %s:%d\n", __FILE__, __LINE__); abort(); } while (0)
-/* math */
-
-#if ARCH_X86 && HAVE_INLINE_ASM
-#define MASK_ABS(mask, level)\
- __asm__ volatile(\
- "cltd \n\t"\
- "xorl %1, %0 \n\t"\
- "subl %1, %0 \n\t"\
- : "+a" (level), "=&d" (mask)\
- );
-#else
-#define MASK_ABS(mask, level)\
- mask = level >> 31;\
- level = (level ^ mask) - mask;
-#endif
-
/* avoid usage of dangerous/inappropriate system functions */
#undef malloc
#define malloc please_use_av_malloc