Go to the documentation of this file.
26 #ifndef AVUTIL_INTERNAL_H
27 #define AVUTIL_INTERNAL_H
29 #if !defined(DEBUG) && !defined(NDEBUG)
43 #ifndef attribute_align_arg
44 #if ARCH_X86_32 && AV_GCC_VERSION_AT_LEAST(4,2)
45 # define attribute_align_arg __attribute__((force_align_arg_pointer))
47 # define attribute_align_arg
51 #if defined(_MSC_VER) && CONFIG_SHARED
52 # define av_export __declspec(dllimport)
58 # define INT_BIT (CHAR_BIT * sizeof(int))
61 #define FF_ALLOC_OR_GOTO(ctx, p, size, label)\
64 if (p == NULL && (size) != 0) {\
65 av_log(ctx, AV_LOG_ERROR, "Cannot allocate memory.\n");\
70 #define FF_ALLOCZ_OR_GOTO(ctx, p, size, label)\
72 p = av_mallocz(size);\
73 if (p == NULL && (size) != 0) {\
74 av_log(ctx, AV_LOG_ERROR, "Cannot allocate memory.\n");\
87 # define NULL_IF_CONFIG_SMALL(x) NULL
89 # define NULL_IF_CONFIG_SMALL(x) x
109 #if HAVE_SYMVER_ASM_LABEL
110 # define FF_SYMVER(type, name, args, ver) \
111 type ff_##name args __asm__ (EXTERN_PREFIX #name "@" ver); \
113 #elif HAVE_SYMVER_GNU_ASM
114 # define FF_SYMVER(type, name, args, ver) \
115 __asm__ (".symver ff_" #name "," EXTERN_PREFIX #name "@" ver); \
116 type ff_##name args; \
126 # define ONLY_IF_THREADS_ENABLED(x) x
128 # define ONLY_IF_THREADS_ENABLED(x) NULL
140 __asm__
volatile (
"emms" :::
"memory");
142 #elif HAVE_MMX && HAVE_MM_EMPTY
143 # include <mmintrin.h>
144 # define emms_c _mm_empty