#include "config.h"
#if HAVE_SCHED_GETAFFINITY
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <sched.h>
#endif
#include <stddef.h>
#include <stdint.h>
#include <stdatomic.h>
#include "attributes.h"
#include "cpu.h"
#include "cpu_internal.h"
#include "opt.h"
#include "common.h"
#if HAVE_GETPROCESSAFFINITYMASK || HAVE_WINRT
#include <windows.h>
#endif
#if HAVE_SYSCTL
#if HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#include <sys/types.h>
#include <sys/sysctl.h>
#endif
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
static atomic_int cpu_flags = …;
static atomic_int cpu_count = …;
static int get_cpu_flags(void)
{ … }
void av_force_cpu_flags(int arg){ … }
int av_get_cpu_flags(void)
{ … }
int av_parse_cpu_caps(unsigned *flags, const char *s)
{ … }
int av_cpu_count(void)
{ … }
void av_cpu_force_count(int count)
{ … }
size_t av_cpu_max_align(void)
{ … }