aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llcommon/llsys.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:02 -0500
committerJacek Antonelli2008-08-15 23:45:02 -0500
commitd644fc64407dcd14ffcee6a0e9fbe28ee3a4e9bd (patch)
tree7ed0c2c27d717801238a2e6b5749cd5bf88c3059 /linden/indra/llcommon/llsys.cpp
parentSecond Life viewer sources 1.17.3.0 (diff)
downloadmeta-impy-d644fc64407dcd14ffcee6a0e9fbe28ee3a4e9bd.zip
meta-impy-d644fc64407dcd14ffcee6a0e9fbe28ee3a4e9bd.tar.gz
meta-impy-d644fc64407dcd14ffcee6a0e9fbe28ee3a4e9bd.tar.bz2
meta-impy-d644fc64407dcd14ffcee6a0e9fbe28ee3a4e9bd.tar.xz
Second Life viewer sources 1.18.0.6
Diffstat (limited to 'linden/indra/llcommon/llsys.cpp')
-rw-r--r--linden/indra/llcommon/llsys.cpp25
1 files changed, 2 insertions, 23 deletions
diff --git a/linden/indra/llcommon/llsys.cpp b/linden/indra/llcommon/llsys.cpp
index 33e5cda..48f2474 100644
--- a/linden/indra/llcommon/llsys.cpp
+++ b/linden/indra/llcommon/llsys.cpp
@@ -304,33 +304,12 @@ LLCPUInfo::LLCPUInfo()
304{ 304{
305 CProcessor proc; 305 CProcessor proc;
306 const ProcessorInfo* info = proc.GetCPUInfo(); 306 const ProcessorInfo* info = proc.GetCPUInfo();
307 // proc.WriteInfoTextFile("procInfo.txt"); 307 mHasSSE = (info->_Ext.SSE_StreamingSIMD_Extensions != 0);
308 mHasSSE = info->_Ext.SSE_StreamingSIMD_Extensions; 308 mHasSSE2 = (info->_Ext.SSE2_StreamingSIMD2_Extensions != 0);
309 mHasSSE2 = info->_Ext.SSE2_StreamingSIMD2_Extensions;
310 mHasAltivec = info->_Ext.Altivec_Extensions;
311 mCPUMhz = (S32)(proc.GetCPUFrequency(50)/1000000.0); 309 mCPUMhz = (S32)(proc.GetCPUFrequency(50)/1000000.0);
312 mFamily.assign( info->strFamily ); 310 mFamily.assign( info->strFamily );
313} 311}
314 312
315bool LLCPUInfo::hasAltivec() const
316{
317 return mHasAltivec;
318}
319
320bool LLCPUInfo::hasSSE() const
321{
322 return mHasSSE;
323}
324
325bool LLCPUInfo::hasSSE2() const
326{
327 return mHasSSE2;
328}
329
330S32 LLCPUInfo::getMhz() const
331{
332 return mCPUMhz;
333}
334 313
335std::string LLCPUInfo::getCPUString() const 314std::string LLCPUInfo::getCPUString() const
336{ 315{