llprocessor.cpp File Reference

Code to figure out the processor. Originally by Benjamin Jurke. More...

#include "linden_common.h"
#include "processor.h"
#include <memory>

Include dependency graph for llprocessor.cpp:

Go to the source code of this file.

Defines

#define FORCEINLINE
#define CheckBit(var, bit)   ((var & (1 << bit)) ? true : false)
#define LENCHECK   len = (unsigned int) strlen(buf); if (len >= uiMaxLen) return false; strcpy(strBuffer, buf); strBuffer += len;
#define COPYADD(str)   strcpy(buf, str); LENCHECK;
#define FORMATADD(format, var)   sprintf(buf, format, var); LENCHECK;
#define BOOLADD(str, boolvar)   COPYADD(str); if (boolvar) { COPYADD(" Yes\n"); } else { COPYADD(" No\n"); }

Functions

static FORCEINLINE char * TranslateAssociativeWays (unsigned int uiWays, char *buf)
static FORCEINLINE void TranslateTLB (ProcessorTLB *tlb)
static FORCEINLINE void TranslateCache (ProcessorCache *cache)


Detailed Description

Code to figure out the processor. Originally by Benjamin Jurke.

LicenseInfo
firstyear=2002&license=viewergpl

Copyright (c) 2002-2007, Linden Research, Inc.

Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlife.com/developers/opensource/gplv2

There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlife.com/developers/opensource/flossexception

By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.

ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$

Definition in file llprocessor.cpp.


Define Documentation

#define BOOLADD ( str,
boolvar   )     COPYADD(str); if (boolvar) { COPYADD(" Yes\n"); } else { COPYADD(" No\n"); }

Referenced by CProcessor::CPUInfoToText().

#define CheckBit ( var,
bit   )     ((var & (1 << bit)) ? true : false)

Definition at line 74 of file llprocessor.cpp.

Referenced by CProcessor::AnalyzeAMDProcessor(), and CProcessor::GetStandardProcessorExtensions().

#define COPYADD ( str   )     strcpy(buf, str); LENCHECK;

Referenced by CProcessor::CPUInfoToText().

#define FORCEINLINE

Definition at line 68 of file llprocessor.cpp.

#define FORMATADD ( format,
var   )     sprintf(buf, format, var); LENCHECK;

Referenced by CProcessor::CPUInfoToText().

#define LENCHECK   len = (unsigned int) strlen(buf); if (len >= uiMaxLen) return false; strcpy(strBuffer, buf); strBuffer += len;


Function Documentation

static FORCEINLINE char* TranslateAssociativeWays ( unsigned int  uiWays,
char *  buf 
) [static]

Definition at line 1376 of file llprocessor.cpp.

Referenced by TranslateCache(), and TranslateTLB().

static FORCEINLINE void TranslateCache ( ProcessorCache cache  )  [static]

Definition at line 1403 of file llprocessor.cpp.

References ProcessorCache::bPresent, ProcessorCache::bSectored, ProcessorCache::strCache, ProcessorCache::strSize, TranslateAssociativeWays(), ProcessorCache::uiAssociativeWays, and ProcessorCache::uiLineSize.

Referenced by CProcessor::TranslateProcessorConfiguration().

static FORCEINLINE void TranslateTLB ( ProcessorTLB tlb  )  [static]

Definition at line 1393 of file llprocessor.cpp.

References ProcessorTLB::bPresent, ProcessorTLB::strPageSize, ProcessorTLB::strTLB, TranslateAssociativeWays(), ProcessorTLB::uiAssociativeWays, and ProcessorTLB::uiEntries.

Referenced by CProcessor::TranslateProcessorConfiguration().


Generated on Thu Jul 1 06:10:38 2010 for Second Life Viewer by  doxygen 1.4.7