kdefx Library API Documentation

kcpuinfo.h

00001 /*
00002  * This file is part of the KDE libraries
00003  * Copyright (C) 2003 Fredrik Höglund <fredrik@kde.org>
00004  *
00005  * Redistribution and use in source and binary forms, with or without
00006  * modification, are permitted provided that the following conditions
00007  * are met:
00008  *
00009  * 1. Redistributions of source code must retain the above copyright
00010  *    notice, this list of conditions and the following disclaimer.
00011  * 2. Redistributions in binary form must reproduce the above copyright
00012  *    notice, this list of conditions and the following disclaimer in the
00013  *    documentation and/or other materials provided with the distribution.
00014  *
00015  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
00016  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
00017  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
00018  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
00019  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
00020  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
00021  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
00022  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00023  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
00024  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00025  */
00026 
00027 #ifndef __KCPUINFO_H
00028 #define __KCPUINFO_H
00029 
00030 
00038 class KCPUInfo
00039 {
00040     public:
00045         enum Extensions {
00046             IntelMMX        = 1 << 0,  
00047             IntelSSE        = 1 << 1,  
00048             IntelSSE2       = 1 << 2,  
00049             AMD3DNOW        = 1 << 3,  
00050             AltiVec         = 1 << 4   
00051         };
00052 
00061         static bool haveExtension( unsigned int extension )
00062         { return s_features & extension; }
00063 
00064     private:
00065         static unsigned int s_features;
00066 };
00067 
00068 #endif
00069 
KDE Logo
This file is part of the documentation for kdefx Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sun Jan 15 13:32:14 2006 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003