qimageblitz
blitzcpu.h
Go to the documentation of this file.00001 #ifndef __BLITZ_CPU_H 00002 #define __BLITZ_CPU_H 00003 00033 #include "qimageblitz_export.h" 00034 #include <QtCore/QtGlobal> 00035 00043 namespace MMX{ 00044 typedef struct { quint32 d[2]; } Pack2; 00045 typedef struct { quint16 d[4]; } Pack4; 00046 typedef struct { quint8 d[8]; } Pack8; 00047 } 00048 00058 class BlitzCPUInfo{ 00059 public: 00060 enum Extension { 00061 MMX = 1 << 0, 00062 IntegerSSE = 1 << 1, 00063 SSE = 1 << 2, 00064 SSE2 = 1 << 3, 00065 AMD3DNOW = 1 << 4, 00066 AMD3DNOW2 = 1 << 5, 00067 AltiVec = 1 << 6 00068 }; 00072 static bool haveExtension(unsigned int extension); 00073 }; 00074 00075 00076 #endif 00077
KDE 4.4 API Reference