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) 2009-2011 johannes hanika.
4
Copyright (C) 2011 Ulrich Pegelow.
5
Copyright (C) 2012 Richard Wonka.
6
Copyright (C) 2013-2014, 2016 Tobias Ellinghaus.
7
Copyright (C) 2014 Roman Lebedev.
8
Copyright (C) 2020 Pascal Obry.
9
Copyright (C) 2022 Martin BaĆinka.
10
11
darktable is free software: you can redistribute it and/or modify
12
it under the terms of the GNU General Public License as published by
13
the Free Software Foundation, either version 3 of the License, or
14
(at your option) any later version.
15
16
darktable is distributed in the hope that it will be useful,
17
but WITHOUT ANY WARRANTY; without even the implied warranty of
18
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
GNU General Public License for more details.
20
21
You should have received a copy of the GNU General Public License
22
along with darktable. If not, see <http://www.gnu.org/licenses/>.
23
*/
24
25
#pragma once
26
27
#include <glib.h>
28
29
typedef
enum
dt_cpu_flags_t
30
{
31
CPU_FLAG_MMX
= 1 << 0,
32
CPU_FLAG_SSE
= 1 << 1,
33
CPU_FLAG_CMOV
= 1 << 2,
34
CPU_FLAG_3DNOW
= 1 << 3,
35
CPU_FLAG_3DNOW_EXT
= 1 << 4,
36
CPU_FLAG_AMD_ISSE
= 1 << 5,
37
CPU_FLAG_SSE2
= 1 << 6,
38
CPU_FLAG_SSE3
= 1 << 7,
39
CPU_FLAG_SSSE3
= 1 << 8,
40
CPU_FLAG_SSE4_1
= 1 << 9,
41
CPU_FLAG_SSE4_2
= 1 << 10,
42
CPU_FLAG_AVX
= 1 << 11
43
}
dt_cpu_flags_t
;
44
45
dt_cpu_flags_t
dt_detect_cpu_features
();
46
47
// clang-format off
48
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
49
// vim: shiftwidth=2 expandtab tabstop=2 cindent
50
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
51
// clang-format on
52
dt_cpu_flags_t
dt_cpu_flags_t
Definition
cpuid.h:30
CPU_FLAG_AMD_ISSE
@ CPU_FLAG_AMD_ISSE
Definition
cpuid.h:36
CPU_FLAG_SSE4_1
@ CPU_FLAG_SSE4_1
Definition
cpuid.h:40
CPU_FLAG_MMX
@ CPU_FLAG_MMX
Definition
cpuid.h:31
CPU_FLAG_SSE4_2
@ CPU_FLAG_SSE4_2
Definition
cpuid.h:41
CPU_FLAG_3DNOW_EXT
@ CPU_FLAG_3DNOW_EXT
Definition
cpuid.h:35
CPU_FLAG_SSSE3
@ CPU_FLAG_SSSE3
Definition
cpuid.h:39
CPU_FLAG_SSE
@ CPU_FLAG_SSE
Definition
cpuid.h:32
CPU_FLAG_SSE2
@ CPU_FLAG_SSE2
Definition
cpuid.h:37
CPU_FLAG_SSE3
@ CPU_FLAG_SSE3
Definition
cpuid.h:38
CPU_FLAG_3DNOW
@ CPU_FLAG_3DNOW
Definition
cpuid.h:34
CPU_FLAG_AVX
@ CPU_FLAG_AVX
Definition
cpuid.h:42
CPU_FLAG_CMOV
@ CPU_FLAG_CMOV
Definition
cpuid.h:33
dt_detect_cpu_features
dt_cpu_flags_t dt_detect_cpu_features()
Definition
cpuid.c:86
src
common
cpuid.h
Generated by
1.9.8