|
From: <sv...@va...> - 2005-07-30 01:23:30
|
Author: njn
Date: 2005-07-30 02:22:37 +0100 (Sat, 30 Jul 2005)
New Revision: 4297
Log:
Use the standard #ifdefs for arch-specific code.
Modified:
trunk/tests/cputest.c
Modified: trunk/tests/cputest.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/tests/cputest.c 2005-07-29 22:01:19 UTC (rev 4296)
+++ trunk/tests/cputest.c 2005-07-30 01:22:37 UTC (rev 4297)
@@ -21,7 +21,7 @@
NULL
};
=20
-#ifdef __amd64
+#ifdef __x86_64__
static Bool go(char* cpu)
{
if ( strcmp( cpu, "amd64" ) =3D=3D 0 )
@@ -29,7 +29,7 @@
else=20
return False;
}
-#endif // __amd64
+#endif // __x86_64__
=20
#ifdef __powerpc__
static Bool go(char* cpu)
@@ -41,7 +41,7 @@
}
#endif // __powerpc__
=20
-#ifdef __x86__
+#ifdef __i386__
static void cpuid ( unsigned int n,
unsigned int* a, unsigned int* b,
unsigned int* c, unsigned int* d )
@@ -90,7 +90,7 @@
}
return False;
}
-#endif // __x86__
+#endif // __i386__
=20
=20
int main(int argc, char **argv)
|