FFmpeg
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_mips (void)
 
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)
 
int ff_get_cpu_flags_loongarch (void)
 
size_t ff_get_cpu_max_align_mips (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)
 
size_t ff_get_cpu_max_align_loongarch (void)
 

Macro Definition Documentation

◆ CPUEXT_SUFFIX

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

Definition at line 26 of file cpu_internal.h.

◆ CPUEXT_SUFFIX_FAST2

#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))

Definition at line 29 of file cpu_internal.h.

◆ CPUEXT_SUFFIX_SLOW2

#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))

Definition at line 33 of file cpu_internal.h.

◆ CPUEXT_SUFFIX_FAST

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

Definition at line 37 of file cpu_internal.h.

◆ CPUEXT_SUFFIX_SLOW

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

Definition at line 38 of file cpu_internal.h.

◆ CPUEXT

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

Definition at line 40 of file cpu_internal.h.

◆ CPUEXT_FAST

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

Definition at line 41 of file cpu_internal.h.

◆ CPUEXT_SLOW

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

Definition at line 42 of file cpu_internal.h.

Function Documentation

◆ ff_get_cpu_flags_mips()

int ff_get_cpu_flags_mips ( void  )

Definition at line 106 of file cpu.c.

Referenced by get_cpu_flags().

◆ ff_get_cpu_flags_aarch64()

int ff_get_cpu_flags_aarch64 ( void  )

Definition at line 23 of file cpu.c.

Referenced by get_cpu_flags().

◆ ff_get_cpu_flags_arm()

int ff_get_cpu_flags_arm ( void  )

Definition at line 149 of file cpu.c.

Referenced by get_cpu_flags().

◆ ff_get_cpu_flags_ppc()

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().

◆ ff_get_cpu_flags_x86()

int ff_get_cpu_flags_x86 ( void  )

Definition at line 90 of file cpu.c.

Referenced by get_cpu_flags().

◆ ff_get_cpu_flags_loongarch()

int ff_get_cpu_flags_loongarch ( void  )

Definition at line 49 of file cpu.c.

Referenced by get_cpu_flags().

◆ ff_get_cpu_max_align_mips()

size_t ff_get_cpu_max_align_mips ( void  )

Definition at line 119 of file cpu.c.

Referenced by av_cpu_max_align().

◆ ff_get_cpu_max_align_aarch64()

size_t ff_get_cpu_max_align_aarch64 ( void  )

Definition at line 30 of file cpu.c.

Referenced by av_cpu_max_align().

◆ ff_get_cpu_max_align_arm()

size_t ff_get_cpu_max_align_arm ( void  )

Definition at line 162 of file cpu.c.

Referenced by av_cpu_max_align().

◆ ff_get_cpu_max_align_ppc()

size_t ff_get_cpu_max_align_ppc ( void  )

Definition at line 152 of file cpu.c.

Referenced by av_cpu_max_align().

◆ ff_get_cpu_max_align_x86()

size_t ff_get_cpu_max_align_x86 ( void  )

Definition at line 253 of file cpu.c.

Referenced by av_cpu_max_align().

◆ ff_get_cpu_max_align_loongarch()

size_t ff_get_cpu_max_align_loongarch ( void  )

Definition at line 59 of file cpu.c.

Referenced by av_cpu_max_align().

suffix
const char * suffix
Definition: checkasm.c:200
flags
#define flags(name, subs,...)
Definition: cbs_av1.c:561