Ansel
0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
cpuid.h
Go to the documentation of this file.
1
/*
2
This file is part of darktable,
3
Copyright (C) 2014-2020 darktable developers.
4
5
darktable is free software: you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation, either version 3 of the License, or
8
(at your option) any later version.
9
10
darktable is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
14
15
You should have received a copy of the GNU General Public License
16
along with darktable. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
19
#pragma once
20
21
#include <glib.h>
22
23
typedef
enum
dt_cpu_flags_t
24
{
25
CPU_FLAG_MMX
= 1 << 0,
26
CPU_FLAG_SSE
= 1 << 1,
27
CPU_FLAG_CMOV
= 1 << 2,
28
CPU_FLAG_3DNOW
= 1 << 3,
29
CPU_FLAG_3DNOW_EXT
= 1 << 4,
30
CPU_FLAG_AMD_ISSE
= 1 << 5,
31
CPU_FLAG_SSE2
= 1 << 6,
32
CPU_FLAG_SSE3
= 1 << 7,
33
CPU_FLAG_SSSE3
= 1 << 8,
34
CPU_FLAG_SSE4_1
= 1 << 9,
35
CPU_FLAG_SSE4_2
= 1 << 10,
36
CPU_FLAG_AVX
= 1 << 11
37
}
dt_cpu_flags_t
;
38
39
dt_cpu_flags_t
dt_detect_cpu_features
();
40
41
// clang-format off
42
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
43
// vim: shiftwidth=2 expandtab tabstop=2 cindent
44
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
45
// clang-format on
46
dt_cpu_flags_t
dt_cpu_flags_t
Definition
cpuid.h:24
CPU_FLAG_AMD_ISSE
@ CPU_FLAG_AMD_ISSE
Definition
cpuid.h:30
CPU_FLAG_SSE4_1
@ CPU_FLAG_SSE4_1
Definition
cpuid.h:34
CPU_FLAG_MMX
@ CPU_FLAG_MMX
Definition
cpuid.h:25
CPU_FLAG_SSE4_2
@ CPU_FLAG_SSE4_2
Definition
cpuid.h:35
CPU_FLAG_3DNOW_EXT
@ CPU_FLAG_3DNOW_EXT
Definition
cpuid.h:29
CPU_FLAG_SSSE3
@ CPU_FLAG_SSSE3
Definition
cpuid.h:33
CPU_FLAG_SSE
@ CPU_FLAG_SSE
Definition
cpuid.h:26
CPU_FLAG_SSE2
@ CPU_FLAG_SSE2
Definition
cpuid.h:31
CPU_FLAG_SSE3
@ CPU_FLAG_SSE3
Definition
cpuid.h:32
CPU_FLAG_3DNOW
@ CPU_FLAG_3DNOW
Definition
cpuid.h:28
CPU_FLAG_AVX
@ CPU_FLAG_AVX
Definition
cpuid.h:36
CPU_FLAG_CMOV
@ CPU_FLAG_CMOV
Definition
cpuid.h:27
dt_detect_cpu_features
dt_cpu_flags_t dt_detect_cpu_features()
Definition
cpuid.c:80
src
common
cpuid.h
Generated by
1.9.8