FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cpu_internal.h File Reference
#include "config.h"
#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_FAST2(flags, suffix, cpuext, slow_cpuext)
 
#define CPUEXT_SUFFIX_SLOW2(flags, suffix, cpuext, slow_cpuext)
 
#define CPUEXT_SUFFIX_FAST(flags, suffix, cpuext)   CPUEXT_SUFFIX_FAST2(flags, suffix, cpuext, cpuext)
 
#define CPUEXT_SUFFIX_SLOW(flags, suffix, cpuext)   CPUEXT_SUFFIX_SLOW2(flags, suffix, cpuext, 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)
 
size_t ff_get_cpu_max_align_aarch64 (void)
 
size_t ff_get_cpu_max_align_arm (void)
 
size_t ff_get_cpu_max_align_ppc (void)
 
size_t ff_get_cpu_max_align_x86 (void)
 

Macro Definition Documentation

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

Definition at line 26 of file cpu_internal.h.

#define CPUEXT_SUFFIX_FAST2 (   flags,
  suffix,
  cpuext,
  slow_cpuext 
)
Value:
(HAVE_ ## cpuext ## suffix && ((flags) & AV_CPU_FLAG_ ## cpuext) && \
!((flags) & AV_CPU_FLAG_ ## slow_cpuext ## SLOW))
const char * suffix
Definition: checkasm.c:182
#define flags(name, subs,...)
Definition: cbs_av1.c:596

Definition at line 29 of file cpu_internal.h.

#define CPUEXT_SUFFIX_SLOW2 (   flags,
  suffix,
  cpuext,
  slow_cpuext 
)
Value:
(HAVE_ ## cpuext ## suffix && ((flags) & AV_CPU_FLAG_ ## cpuext) && \
((flags) & AV_CPU_FLAG_ ## slow_cpuext ## SLOW))
const char * suffix
Definition: checkasm.c:182
#define flags(name, subs,...)
Definition: cbs_av1.c:596

Definition at line 33 of file cpu_internal.h.

#define CPUEXT_SUFFIX_FAST (   flags,
  suffix,
  cpuext 
)    CPUEXT_SUFFIX_FAST2(flags, suffix, cpuext, cpuext)

Definition at line 37 of file cpu_internal.h.

#define CPUEXT_SUFFIX_SLOW (   flags,
  suffix,
  cpuext 
)    CPUEXT_SUFFIX_SLOW2(flags, suffix, cpuext, cpuext)

Definition at line 38 of file cpu_internal.h.

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

Definition at line 40 of file cpu_internal.h.

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

Definition at line 41 of file cpu_internal.h.

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

Definition at line 42 of file cpu_internal.h.

Function Documentation

int ff_get_cpu_flags_aarch64 ( void  )

Definition at line 23 of file cpu.c.

Referenced by get_cpu_flags().

int ff_get_cpu_flags_arm ( void  )

Definition at line 149 of file cpu.c.

Referenced by 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 get_cpu_flags().

int ff_get_cpu_flags_x86 ( void  )

Definition at line 90 of file cpu.c.

Referenced by get_cpu_flags().

size_t ff_get_cpu_max_align_aarch64 ( void  )

Definition at line 30 of file cpu.c.

Referenced by av_cpu_max_align().

size_t ff_get_cpu_max_align_arm ( void  )

Definition at line 162 of file cpu.c.

Referenced by av_cpu_max_align().

size_t ff_get_cpu_max_align_ppc ( void  )

Definition at line 152 of file cpu.c.

Referenced by av_cpu_max_align().

size_t ff_get_cpu_max_align_x86 ( void  )

Definition at line 245 of file cpu.c.

Referenced by av_cpu_max_align().