openMSX
Main Page
Namespaces
Classes
Files
File List
File Members
utils
HostCPU.hh
Go to the documentation of this file.
1
#ifndef HOSTCPU_HH
2
#define HOSTCPU_HH
3
4
#include "
build-info.hh
"
5
15
namespace
HostCPU {
16
17
extern
bool
mmxFlag
;
18
extern
bool
sseFlag
;
19
extern
bool
sse2Flag
;
20
25
void
init
();
26
27
30
inline
bool
hasMMX
() {
return
mmxFlag
; }
31
34
inline
bool
hasSSE
() {
return
sseFlag
; }
35
38
inline
bool
hasSSE2
() {
return
sse2Flag
; }
39
40
43
inline
void
forceDisableSSE2
() {
sse2Flag
=
false
; }
44
47
inline
void
forceDisableSSE
() {
sseFlag
=
false
;
forceDisableSSE2
(); }
48
51
inline
void
forceDisableMMX
() {
mmxFlag
=
false
;
forceDisableSSE
(); }
52
53
}
// namespace HostCPU
54
55
#endif
Generated on Sun Jun 2 2013 20:16:26 for openMSX by
1.8.1.2