aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llcommon/llsys.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:01 -0500
committerJacek Antonelli2008-08-15 23:45:01 -0500
commit28d8d4e7664bcd6c8369cc18832e42096af7cad2 (patch)
tree069020fe66339aff2ca4176370ff743b14713f2d /linden/indra/llcommon/llsys.cpp
parentSecond Life viewer sources 1.17.2.0 (diff)
downloadmeta-impy-28d8d4e7664bcd6c8369cc18832e42096af7cad2.zip
meta-impy-28d8d4e7664bcd6c8369cc18832e42096af7cad2.tar.gz
meta-impy-28d8d4e7664bcd6c8369cc18832e42096af7cad2.tar.bz2
meta-impy-28d8d4e7664bcd6c8369cc18832e42096af7cad2.tar.xz
Second Life viewer sources 1.17.3.0
Diffstat (limited to '')
-rw-r--r--linden/indra/llcommon/llsys.cpp25
1 files changed, 23 insertions, 2 deletions
diff --git a/linden/indra/llcommon/llsys.cpp b/linden/indra/llcommon/llsys.cpp
index 48f2474..33e5cda 100644
--- a/linden/indra/llcommon/llsys.cpp
+++ b/linden/indra/llcommon/llsys.cpp
@@ -304,12 +304,33 @@ LLCPUInfo::LLCPUInfo()
304{ 304{
305 CProcessor proc; 305 CProcessor proc;
306 const ProcessorInfo* info = proc.GetCPUInfo(); 306 const ProcessorInfo* info = proc.GetCPUInfo();
307 mHasSSE = (info->_Ext.SSE_StreamingSIMD_Extensions != 0); 307 // proc.WriteInfoTextFile("procInfo.txt");
308 mHasSSE2 = (info->_Ext.SSE2_StreamingSIMD2_Extensions != 0); 308 mHasSSE = info->_Ext.SSE_StreamingSIMD_Extensions;
309 mHasSSE2 = info->_Ext.SSE2_StreamingSIMD2_Extensions;
310 mHasAltivec = info->_Ext.Altivec_Extensions;
309 mCPUMhz = (S32)(proc.GetCPUFrequency(50)/1000000.0); 311 mCPUMhz = (S32)(proc.GetCPUFrequency(50)/1000000.0);
310 mFamily.assign( info->strFamily ); 312 mFamily.assign( info->strFamily );
311} 313}
312 314
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}
313 334
314std::string LLCPUInfo::getCPUString() const 335std::string LLCPUInfo::getCPUString() const
315{ 336{