diff options
author | Jacek Antonelli | 2008-08-15 23:45:02 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:02 -0500 |
commit | d644fc64407dcd14ffcee6a0e9fbe28ee3a4e9bd (patch) | |
tree | 7ed0c2c27d717801238a2e6b5749cd5bf88c3059 /linden/indra/llcommon/llsys.cpp | |
parent | Second Life viewer sources 1.17.3.0 (diff) | |
download | meta-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.cpp | 25 |
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 | ||
315 | bool LLCPUInfo::hasAltivec() const | ||
316 | { | ||
317 | return mHasAltivec; | ||
318 | } | ||
319 | |||
320 | bool LLCPUInfo::hasSSE() const | ||
321 | { | ||
322 | return mHasSSE; | ||
323 | } | ||
324 | |||
325 | bool LLCPUInfo::hasSSE2() const | ||
326 | { | ||
327 | return mHasSSE2; | ||
328 | } | ||
329 | |||
330 | S32 LLCPUInfo::getMhz() const | ||
331 | { | ||
332 | return mCPUMhz; | ||
333 | } | ||
334 | 313 | ||
335 | std::string LLCPUInfo::getCPUString() const | 314 | std::string LLCPUInfo::getCPUString() const |
336 | { | 315 | { |