FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cpu_internal.h File Reference
#include "cpu.h"

Go to the source code of this file.

Macros

#define CPUEXT_SUFFIX(flags, suffix, cpuext)   (HAVE_ ## cpuext ## suffix && ((flags) & AV_CPU_FLAG_ ## cpuext))
 
#define CPUEXT_SUFFIX_FAST(flags, suffix, cpuext)
 
#define CPUEXT_SUFFIX_SLOW(flags, suffix, cpuext)
 
#define CPUEXT(flags, cpuext)   CPUEXT_SUFFIX(flags, , cpuext)
 
#define CPUEXT_FAST(flags, cpuext)   CPUEXT_SUFFIX_FAST(flags, , cpuext)
 
#define CPUEXT_SLOW(flags, cpuext)   CPUEXT_SUFFIX_SLOW(flags, , cpuext)
 

Functions

int ff_get_cpu_flags_aarch64 (void)
 
int ff_get_cpu_flags_arm (void)
 
int ff_get_cpu_flags_ppc (void)
 This function MAY rely on signal() or fork() in order to make sure AltiVec is present. More...
 
int ff_get_cpu_flags_x86 (void)
 

Macro Definition Documentation

#define CPUEXT_SUFFIX (   flags,
  suffix,
  cpuext 
)    (HAVE_ ## cpuext ## suffix && ((flags) & AV_CPU_FLAG_ ## cpuext))

Definition at line 24 of file cpu_internal.h.

#define CPUEXT_SUFFIX_FAST (   flags,
  suffix,
  cpuext 
)
Value:
(HAVE_ ## cpuext ## suffix && ((flags) & AV_CPU_FLAG_ ## cpuext) && \
!((flags) & AV_CPU_FLAG_ ## cpuext ## SLOW))
const char * suffix
Definition: checkasm.c:75
static int flags
Definition: cpu.c:47

Definition at line 27 of file cpu_internal.h.

#define CPUEXT_SUFFIX_SLOW (   flags,
  suffix,
  cpuext 
)
Value:
(HAVE_ ## cpuext ## suffix && ((flags) & AV_CPU_FLAG_ ## cpuext) && \
((flags) & AV_CPU_FLAG_ ## cpuext ## SLOW))
const char * suffix
Definition: checkasm.c:75
static int flags
Definition: cpu.c:47

Definition at line 31 of file cpu_internal.h.

#define CPUEXT (   flags,
  cpuext 
)    CPUEXT_SUFFIX(flags, , cpuext)

Definition at line 35 of file cpu_internal.h.

#define CPUEXT_FAST (   flags,
  cpuext 
)    CPUEXT_SUFFIX_FAST(flags, , cpuext)

Definition at line 36 of file cpu_internal.h.

#define CPUEXT_SLOW (   flags,
  cpuext 
)    CPUEXT_SUFFIX_SLOW(flags, , cpuext)

Definition at line 37 of file cpu_internal.h.

Function Documentation

int ff_get_cpu_flags_aarch64 ( void  )

Definition at line 23 of file cpu.c.

Referenced by av_get_cpu_flags().

int ff_get_cpu_flags_arm ( void  )

Definition at line 145 of file cpu.c.

Referenced by av_get_cpu_flags().

int ff_get_cpu_flags_ppc ( void  )

This function MAY rely on signal() or fork() in order to make sure AltiVec is present.

Definition at line 48 of file cpu.c.

Referenced by av_get_cpu_flags().

int ff_get_cpu_flags_x86 ( void  )

Definition at line 90 of file cpu.c.

Referenced by av_get_cpu_flags().