--- lib/neuralnet.c 2007-12-19 00:20:04.000000000 -0600
+++ lib/neuralnet.c 2008-09-05 15:24:09.000000000 -0500
@@ -611,15 +611,16 @@
return 0;
}
+/*
#if USE_SSE_VECTORIZE
#if defined(_MSC_VER) || defined(DISABLE_SSE_TEST) || __x86_64
-
+*/
int SSE_Supported()
{
return 1;
}
-
+/*
#else
static int CheckSSE(void)
@@ -636,7 +637,9 @@
#else
asm (
+*/
/* Check if cpuid is supported (can bit 21 of flags be changed) */
+/*
"mov $1, %%eax\n\t"
"shl $21, %%eax\n\t"
"mov %%eax, %%edx\n\t"
@@ -653,33 +656,45 @@
"xor %%ecx, %%eax\n\t"
"test %%edx, %%eax\n\t"
"jnz 1f\n\t"
+*/
/* Failed (non-pentium compatible machine) */
+/*
"mov $-1, %%ebx\n\t"
"jp 4f\n\t"
"1:"
+*/
/* Check feature test is supported */
+/*
"mov $0, %%eax\n\t"
"cpuid\n\t"
"cmp $1, %%eax\n\t"
"jge 2f\n\t"
+*/
/* Unlucky - somehow cpuid 1 isn't supported */
+/*
"mov $-2, %%ebx\n\t"
"jp 4f\n\t"
"2:"
+*/
/* Check if sse is supported (bit 25 in edx from cpuid 1) */
+/*
"mov $1, %%eax\n\t"
"cpuid\n\t"
"mov $1, %%eax\n\t"
"shl $25, %%eax\n\t"
"test %%eax, %%edx\n\t"
"jnz 3f\n\t"
+*/
/* Not supported */
+/*
"mov $0, %%ebx\n\t"
"jp 4f\n\t"
"3:"
+*/
/* Supported */
+/*
"mov $1, %%ebx\n\t"
"4:"
@@ -695,10 +710,14 @@
printf("No sse cpuid check available\n");
break;
case 0:
+*/
/* No SSE support */
+/*
break;
case 1:
+*/
/* SSE support */
+/*
return 1;
default:
printf("Unknown return testing for SSE\n");
@@ -719,3 +738,4 @@
#endif
#endif
+*/
\ No newline at end of file