repo.or.cz
/
openal-soft.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Use 0/1 defines for backend and simd macros
[openal-soft.git]
/
core
/
cpu_caps.h
blob
0826a49bd12a8d9b73320db4346545b762331b26
1
#ifndef CORE_CPU_CAPS_H
2
#define CORE_CPU_CAPS_H
3
4
#include <optional>
5
#include <string>
6
7
8
extern
int
CPUCapFlags
;
9
enum
{
10
CPU_CAP_SSE
=
1
<<
0
,
11
CPU_CAP_SSE2
=
1
<<
1
,
12
CPU_CAP_SSE3
=
1
<<
2
,
13
CPU_CAP_SSE4_1
=
1
<<
3
,
14
CPU_CAP_NEON
=
1
<<
4
,
15
};
16
17
struct
CPUInfo
{
18
std
::
string mVendor
;
19
std
::
string mName
;
20
int
mCaps
{
0
};
21
};
22
23
std
::
optional
<
CPUInfo
>
GetCPUInfo
();
24
25
#endif
/* CORE_CPU_CAPS_H */