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_SLOW(flags, suffix, 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(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_riscv (void)
 
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)
 
unsigned long ff_getauxval (unsigned long type)
 

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_SLOW

#define CPUEXT_SUFFIX_SLOW (   flags,
  suffix,
  cpuext 
)
Value:
(HAVE_ ## cpuext ## suffix && \
((flags) & (AV_CPU_FLAG_ ## cpuext | AV_CPU_FLAG_ ## cpuext ## SLOW)))

Definition at line 33 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 | AV_CPU_FLAG_ ## slow_cpuext ## SLOW)))

Definition at line 37 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 41 of file cpu_internal.h.

◆ CPUEXT

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

Definition at line 43 of file cpu_internal.h.

◆ CPUEXT_FAST

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

Definition at line 44 of file cpu_internal.h.

◆ CPUEXT_SLOW

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

Definition at line 45 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 148 of file cpu.c.

Referenced by get_cpu_flags().

◆ ff_get_cpu_flags_arm()

int ff_get_cpu_flags_arm ( void  )

Definition at line 167 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 64 of file cpu.c.

Referenced by get_cpu_flags().

◆ ff_get_cpu_flags_riscv()

int ff_get_cpu_flags_riscv ( void  )

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 41 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 171 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 180 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 179 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 257 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 51 of file cpu.c.

Referenced by av_cpu_max_align().

◆ ff_getauxval()

unsigned long ff_getauxval ( unsigned long  type)

Definition at line 295 of file cpu.c.

Referenced by cpu_flags_getauxval(), ff_get_cpu_flags_ppc(), and ff_get_cpu_flags_riscv().

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