Build vsscript with Waf.
[vapoursynth-svn.git] / src / core / cpufeatures.h
blob8076eada68f5e7f600908238ff8844e735251a84
1 /*
2 * Copyright (c) 2012 Fredrik Mellbin
4 * This file is part of VapourSynth.
6 * VapourSynth is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * VapourSynth is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with VapourSynth; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 struct CPUFeatures {
22 // This is to determine if the cpu is up to the minimum requirements in terms of supported instructions
23 // that the VapourSynth core uses.
24 // On x86 all features up to sse2 are required.
25 bool can_run_vs;
26 // x86
27 bool sse3;
28 bool ssse3;
29 bool sse4_1;
30 bool sse4_2;
31 bool fma3;
32 bool avx;
35 void getCPUFeatures(CPUFeatures *cpuFeatures);