summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraustriancoder <austriancoder>2004-10-07 15:36:38 +0000
committeraustriancoder <austriancoder>2004-10-07 15:36:38 +0000
commitd8ca315a825be2ceb3452927c94241ce19a48d9c (patch)
tree3df894bff0a5970b5bb6ed0fce78b36d49d7caba
parenta9c8fff0f6b60b6fc7ba80a76542a54dfbb4d3ba (diff)
downloadvdr-plugin-dxr3-d8ca315a825be2ceb3452927c94241ce19a48d9c.tar.gz
vdr-plugin-dxr3-d8ca315a825be2ceb3452927c94241ce19a48d9c.tar.bz2
fix for gcc-2.95
-rw-r--r--dxr3cpu.c10
-rw-r--r--dxr3cpu.h2
2 files changed, 6 insertions, 6 deletions
diff --git a/dxr3cpu.c b/dxr3cpu.c
index 4186013..fb8424f 100644
--- a/dxr3cpu.c
+++ b/dxr3cpu.c
@@ -32,7 +32,7 @@ cDxr3CPU::cDxr3CPU()
unsigned long eax,ebx,edx,unused;
// readout the vendor
- cpuid(0,eax,ebx,unused,edx);
+ Cpuid(0,eax,ebx,unused,edx);
// set Vendor to ""
memset(m_Info.Vendor, 0, 16);
@@ -45,7 +45,7 @@ cDxr3CPU::cDxr3CPU()
// check the features
// could we get the needed infos?
- if (cpuid(1,eax,ebx,unused,edx))
+ if (Cpuid(1,eax,ebx,unused,edx))
{
m_Info.MMX = ((edx & 1<<23) != 0);
m_Info.SSE = ((edx & 1<<25) != 0);
@@ -55,7 +55,7 @@ cDxr3CPU::cDxr3CPU()
// 3DNow is a litle bit harder to read out
// We read the ext. CPUID level 0x80000000
- if (cpuid(0x80000000,eax,ebx,unused,edx))
+ if (Cpuid(0x80000000,eax,ebx,unused,edx))
{
// now in eax there is the max. supported extended CPUID level
// we check if theres an extended CPUID level support
@@ -63,7 +63,7 @@ cDxr3CPU::cDxr3CPU()
{
// If we can access the extended CPUID level 0x80000001 we get the
// edx register
- if (cpuid(0x80000001,eax,ebx,unused,edx))
+ if (Cpuid(0x80000001,eax,ebx,unused,edx))
{
// Now we can mask some AMD specific cpu extensions
// 22 ... Extended MMX_MultimediaExtensions
@@ -120,7 +120,7 @@ bool cDxr3CPU::CheckCPUIDPresence()
// ==================================
//! cpuid function
-bool cDxr3CPU::cpuid(unsigned long function, unsigned long& out_eax, unsigned long& out_ebx, unsigned long& out_ecx, unsigned long& out_edx)
+bool cDxr3CPU::Cpuid(unsigned long function, unsigned long& out_eax, unsigned long& out_ebx, unsigned long& out_ecx, unsigned long& out_edx)
{
asm("cpuid": "=a" (out_eax), "=b" (out_ebx), "=c" (out_ecx), "=d" (out_edx) : "a" (function));
return true;
diff --git a/dxr3cpu.h b/dxr3cpu.h
index c7bc3f8..472fae8 100644
--- a/dxr3cpu.h
+++ b/dxr3cpu.h
@@ -98,7 +98,7 @@ private:
bool CheckCPUIDPresence();
// main function to get cpu(s) features
- bool cpuid(unsigned long function, unsigned long& out_eax, unsigned long& out_ebx, unsigned long& out_ecx, unsigned long& out_edx);
+ bool Cpuid(unsigned long function, unsigned long& out_eax, unsigned long& out_ebx, unsigned long& out_ecx, unsigned long& out_edx);
CPUInformation m_Info;
};