Skip to content
Skip to link menu
Trinity API Reference
Trinity API Reference
tdefx
tdefx
tdefx
kcpuinfo.h
1
/*
2
* This file is part of the KDE libraries
3
* Copyright (C) 2003 Fredrik Höglund <fredrik@kde.org>
4
*
5
* Redistribution and use in source and binary forms, with or without
6
* modification, are permitted provided that the following conditions
7
* are met:
8
*
9
* 1. Redistributions of source code must retain the above copyright
10
* notice, this list of conditions and the following disclaimer.
11
* 2. Redistributions in binary form must reproduce the above copyright
12
* notice, this list of conditions and the following disclaimer in the
13
* documentation and/or other materials provided with the distribution.
14
*
15
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25
*/
26
27
#ifndef __KCPUINFO_H
28
#define __KCPUINFO_H
29
30
#include <tdelibs_export.h>
31
39
class
TDEFX_EXPORT
KCPUInfo
40
{
41
public
:
46
enum
Extensions
{
47
IntelMMX = 1 << 0,
48
IntelSSE = 1 << 1,
49
IntelSSE2 = 1 << 2,
50
AMD3DNOW = 1 << 3,
51
AltiVec = 1 << 4
52
};
53
62
static
bool
haveExtension(
unsigned
int
extension )
63
{
return
(s_features & extension) != 0; }
64
65
private
:
66
static
unsigned
int
s_features;
67
};
68
69
#endif
70
tdefx
Skip menu "tdefx"
Main Page
Alphabetical List
Class List
File List
Class Members
tdefx
Skip menu "tdefx"
arts
dcop
dnssd
interfaces
kspeech
interface
library
tdetexteditor
kate
kded
kdoctools
kimgio
kjs
libtdemid
libtdescreensaver
tdecore
tdeabc
tdecmshell
tdecore
tdefx
tdehtml
tdeinit
tdeio
bookmarks
httpfilter
kpasswdserver
kssl
tdeioslave
http
tdefile
tdeio
tdeioexec
tdemdi
tdemdi
tdenewstuff
tdeparts
tdeprint
tderandr
tderesources
tdespell2
tdesu
tdeui
tdeunittest
tdeutils
tdewallet