chromium/third_party/ffmpeg/libavutil/x86/cpu.h

/*
 * This file is part of FFmpeg.
 *
 * FFmpeg is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * FFmpeg is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with FFmpeg; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 */

#ifndef AVUTIL_X86_CPU_H
#define AVUTIL_X86_CPU_H

#include "libavutil/cpu.h"
#include "libavutil/cpu_internal.h"

#define AV_CPU_FLAG_AMD3DNOW
#define AV_CPU_FLAG_AMD3DNOWEXT

#define X86_AMD3DNOW(flags)
#define X86_AMD3DNOWEXT(flags)
#define X86_MMX(flags)
#define X86_MMXEXT(flags)
#define X86_SSE(flags)
#define X86_SSE2(flags)
#define X86_SSE2_FAST(flags)
#define X86_SSE2_SLOW(flags)
#define X86_SSE3(flags)
#define X86_SSE3_FAST(flags)
#define X86_SSE3_SLOW(flags)
#define X86_SSSE3(flags)
#define X86_SSSE3_FAST(flags)
#define X86_SSSE3_SLOW(flags)
#define X86_SSE4(flags)
#define X86_SSE42(flags)
#define X86_AVX(flags)
#define X86_AVX_FAST(flags)
#define X86_AVX_SLOW(flags)
#define X86_XOP(flags)
#define X86_FMA3(flags)
#define X86_FMA4(flags)
#define X86_AVX2(flags)
#define X86_AESNI(flags)
#define X86_AVX512(flags)

#define EXTERNAL_AMD3DNOW(flags)
#define EXTERNAL_AMD3DNOWEXT(flags)
#define EXTERNAL_MMX(flags)
#define EXTERNAL_MMXEXT(flags)
#define EXTERNAL_SSE(flags)
#define EXTERNAL_SSE2(flags)
#define EXTERNAL_SSE2_FAST(flags)
#define EXTERNAL_SSE2_SLOW(flags)
#define EXTERNAL_SSE3(flags)
#define EXTERNAL_SSE3_FAST(flags)
#define EXTERNAL_SSE3_SLOW(flags)
#define EXTERNAL_SSSE3(flags)
#define EXTERNAL_SSSE3_FAST(flags)
#define EXTERNAL_SSSE3_SLOW(flags)
#define EXTERNAL_SSE4(flags)
#define EXTERNAL_SSE42(flags)
#define EXTERNAL_AVX(flags)
#define EXTERNAL_AVX_FAST(flags)
#define EXTERNAL_AVX_SLOW(flags)
#define EXTERNAL_XOP(flags)
#define EXTERNAL_FMA3(flags)
#define EXTERNAL_FMA3_FAST(flags)
#define EXTERNAL_FMA3_SLOW(flags)
#define EXTERNAL_FMA4(flags)
#define EXTERNAL_AVX2(flags)
#define EXTERNAL_AVX2_FAST(flags)
#define EXTERNAL_AVX2_SLOW(flags)
#define EXTERNAL_AESNI(flags)
#define EXTERNAL_AVX512(flags)
#define EXTERNAL_AVX512ICL(flags)

#define INLINE_AMD3DNOW(flags)
#define INLINE_AMD3DNOWEXT(flags)
#define INLINE_MMX(flags)
#define INLINE_MMXEXT(flags)
#define INLINE_SSE(flags)
#define INLINE_SSE2(flags)
#define INLINE_SSE2_FAST(flags)
#define INLINE_SSE2_SLOW(flags)
#define INLINE_SSE3(flags)
#define INLINE_SSE3_FAST(flags)
#define INLINE_SSE3_SLOW(flags)
#define INLINE_SSSE3(flags)
#define INLINE_SSSE3_FAST(flags)
#define INLINE_SSSE3_SLOW(flags)
#define INLINE_SSE4(flags)
#define INLINE_SSE42(flags)
#define INLINE_AVX(flags)
#define INLINE_AVX_FAST(flags)
#define INLINE_AVX_SLOW(flags)
#define INLINE_XOP(flags)
#define INLINE_FMA3(flags)
#define INLINE_FMA4(flags)
#define INLINE_AVX2(flags)
#define INLINE_AESNI(flags)

void ff_cpu_cpuid(int index, int *eax, int *ebx, int *ecx, int *edx);
void ff_cpu_xgetbv(int op, int *eax, int *edx);
int  ff_cpu_cpuid_test(void);

#endif /* AVUTIL_X86_CPU_H */