1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-04 03:40:07 +00:00

Added Value support to the Button's toggle state and TextEditor content. Refactored the atomic operation functions to live inside a class called Atomic, and the byte order functions into a class called ByteOrder.

This commit is contained in:
Julian Storer 2010-01-10 22:00:59 +00:00
parent 3ddbc82f9f
commit 18ffeba9da
64 changed files with 3721 additions and 3609 deletions

View file

@ -59,20 +59,6 @@ static double hiResTicksScaleFactor;
#pragma intrinsic (__cpuid)
#pragma intrinsic (__rdtsc)
/*static unsigned int getCPUIDWord (int* familyModel = 0, int* extFeatures = 0) throw()
{
int info [4];
__cpuid (info, 1);
if (familyModel != 0)
*familyModel = info [0];
if (extFeatures != 0)
*extFeatures = info[1];
return info[3];
}*/
const String SystemStats::getCpuVendor() throw()
{
int info [4];
@ -91,50 +77,6 @@ const String SystemStats::getCpuVendor() throw()
//==============================================================================
// CPU info functions using old fashioned inline asm...
/*static juce_noinline unsigned int getCPUIDWord (int* familyModel = 0, int* extFeatures = 0)
{
unsigned int cpu = 0;
unsigned int ext = 0;
unsigned int family = 0;
#if JUCE_GCC
unsigned int dummy = 0;
#endif
#ifndef __MINGW32__
__try
#endif
{
#if JUCE_GCC
__asm__ ("cpuid" : "=a" (family), "=b" (ext), "=c" (dummy),"=d" (cpu) : "a" (1));
#else
__asm
{
mov eax, 1
cpuid
mov cpu, edx
mov family, eax
mov ext, ebx
}
#endif
}
#ifndef __MINGW32__
__except (EXCEPTION_EXECUTE_HANDLER)
{
return 0;
}
#endif
if (familyModel != 0)
*familyModel = family;
if (extFeatures != 0)
*extFeatures = ext;
return cpu;
}*/
static void juce_getCpuVendor (char* const v)
{
int vendor[4];