FFmpeg
Macros | Functions
x86_32.h File Reference
#include "checkasm/attributes.h"
#include "checkasm/checkasm.h"

Go to the source code of this file.

Macros

#define checked_call_fn(ret)   checkasm_checked_call_float
 
#define checkasm_declare_impl(ret, ...)
 
#define checkasm_call_checked(func, ...)
 
#define checkasm_declare_emms(cpu_flags, ret, ...)
 
#define checkasm_emms()   __asm__ volatile("emms" ::: "memory")
 
#define checkasm_clear_cpu_state()
 
#define CHECKASM_ALIGNMENT   64
 

Functions

CHECKASM_API void checkasm_checked_call (void *func,...)
 
CHECKASM_API void checkasm_checked_call_float (void *func,...)
 
CHECKASM_API void checkasm_checked_call_emms (void *func,...)
 
CHECKASM_API void checkasm_empty_mmx (void)
 

Macro Definition Documentation

◆ checked_call_fn

#define checked_call_fn (   ret)    checkasm_checked_call_float

Definition at line 49 of file x86_32.h.

◆ checkasm_declare_impl

#define checkasm_declare_impl (   ret,
  ... 
)
Value:
ret (*checked_call)(void *, __VA_ARGS__, int, int, int, int, int, int, int, int, \
int, int, int, int, int, int, int) \
= (ret (*)(void *, __VA_ARGS__, int, int, int, int, int, int, int, int, int, \
int, int, int, int, int, int))(void *) checked_call_fn(ret); \
int emms_needed = 0; \
(void) emms_needed

Definition at line 52 of file x86_32.h.

◆ checkasm_call_checked

#define checkasm_call_checked (   func,
  ... 
)
Value:
checked_call(func, __VA_ARGS__, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, \
1)); \
checkasm_set_signal_handler_state(0)

Definition at line 60 of file x86_32.h.

◆ checkasm_declare_emms

#define checkasm_declare_emms (   cpu_flags,
  ret,
  ... 
)
Value:
checkasm_declare(ret, __VA_ARGS__); \
checked_call = (ret (*)(void *, __VA_ARGS__, int, int, int, int, int, int, int, \
int, int, int, int, int, int, int, \
int))(void *) checkasm_checked_call_emms; \
emms_needed = 1; \
}

Definition at line 66 of file x86_32.h.

◆ checkasm_emms

#define checkasm_emms ( )    __asm__ volatile("emms" ::: "memory")

Definition at line 76 of file x86_32.h.

◆ checkasm_clear_cpu_state

#define checkasm_clear_cpu_state ( )
Value:
do { \
if (emms_needed) \
checkasm_emms(); \
} while (0)

Definition at line 81 of file x86_32.h.

◆ CHECKASM_ALIGNMENT

#define CHECKASM_ALIGNMENT   64

Definition at line 87 of file x86_32.h.

Function Documentation

◆ checkasm_checked_call()

CHECKASM_API void checkasm_checked_call ( void *  func,
  ... 
)

◆ checkasm_checked_call_float()

CHECKASM_API void checkasm_checked_call_float ( void *  func,
  ... 
)

◆ checkasm_checked_call_emms()

CHECKASM_API void checkasm_checked_call_emms ( void *  func,
  ... 
)

◆ checkasm_empty_mmx()

CHECKASM_API void checkasm_empty_mmx ( void  )
func
int(* func)(AVBPrint *dst, const char *in, const char *arg)
Definition: jacosubdec.c:66
checkasm_set_signal_handler_state
CHECKASM_API void checkasm_set_signal_handler_state(int enabled)
Enable or disable signal handling.
Definition: signal.c:52
checked_call_fn
#define checked_call_fn(ret)
Definition: x86_32.h:49
cpu_flags
CheckasmCpu cpu_flags
Definition: checkasm.c:84
checkasm_declare
#define checkasm_declare(ret,...)
Declare a function signature for testing.
Definition: test.h:205
checkasm_checked_call_emms
CHECKASM_API void checkasm_checked_call_emms(void *func,...)
ret
ret
Definition: filter_design.txt:187
checkasm_get_cpu_flags
CHECKASM_API CheckasmCpu checkasm_get_cpu_flags(void)
Get the current active set of CPU flags.
Definition: checkasm.c:121