FFmpeg
Loading...
Searching...
No Matches
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)
 
#define checkasm_declare_impl(ret, ...)
 
#define checkasm_call_checked(func, ...)
 
#define checkasm_declare_emms(cpu_flags, ret, ...)
 
#define checkasm_emms()
 
#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)
Value:
CHECKASM_API void checkasm_checked_call_float(void *func,...)

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
#define checked_call_fn(ret)
Definition x86_32.h:49

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)
CHECKASM_API void checkasm_set_signal_handler_state(int enabled)
Enable or disable signal handling.
Definition signal.c:52
int(* func)(AVBPrint *dst, const char *in, const char *arg)
Definition jacosubdec.c:66

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; \
}
CHECKASM_API CheckasmCpu checkasm_get_cpu_flags(void)
Get the current active set of CPU flags.
Definition checkasm.c:122
static atomic_int cpu_flags
Definition cpu.c:56
#define checkasm_declare(ret,...)
Declare a function signature for testing.
Definition test.h:205
CHECKASM_API void checkasm_checked_call_emms(void *func,...)

Definition at line 66 of file x86_32.h.

◆ checkasm_emms

#define checkasm_emms ( )
Value:
__asm__ volatile("emms" ::: "memory")
__asm__(".macro parse_r var r\n\t" "\\var = -1\n\t" _IFC_REG(0) _IFC_REG(1) _IFC_REG(2) _IFC_REG(3) _IFC_REG(4) _IFC_REG(5) _IFC_REG(6) _IFC_REG(7) _IFC_REG(8) _IFC_REG(9) _IFC_REG(10) _IFC_REG(11) _IFC_REG(12) _IFC_REG(13) _IFC_REG(14) _IFC_REG(15) _IFC_REG(16) _IFC_REG(17) _IFC_REG(18) _IFC_REG(19) _IFC_REG(20) _IFC_REG(21) _IFC_REG(22) _IFC_REG(23) _IFC_REG(24) _IFC_REG(25) _IFC_REG(26) _IFC_REG(27) _IFC_REG(28) _IFC_REG(29) _IFC_REG(30) _IFC_REG(31) ".iflt \\var\n\t" ".error \"Unable to parse register name \\r\"\n\t" ".endif\n\t" ".endm")

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 )