rpms/gnubg/devel gnubg-0.9.0-1-neuralnet-arch.patch,1.1,1.2

Jon Ciesla limb at fedoraproject.org
Mon Sep 8 12:02:05 UTC 2008


Author: limb

Update of /cvs/pkgs/rpms/gnubg/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv6715

Modified Files:
	gnubg-0.9.0-1-neuralnet-arch.patch 
Log Message:
If at first you don't succeed. . .buy me a ppc host to test on? ;)


gnubg-0.9.0-1-neuralnet-arch.patch:

Index: gnubg-0.9.0-1-neuralnet-arch.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gnubg/devel/gnubg-0.9.0-1-neuralnet-arch.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- gnubg-0.9.0-1-neuralnet-arch.patch	5 Sep 2008 19:46:34 -0000	1.1
+++ gnubg-0.9.0-1-neuralnet-arch.patch	8 Sep 2008 12:01:35 -0000	1.2
@@ -1,11 +1,98 @@
---- lib/neuralnet.c	2008-09-05 14:20:49.000000000 -0500
-+++ lib/neuralnet.c	2008-09-05 14:20:49.000000000 -0500
-@@ -613,7 +613,7 @@
+--- 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
-+#if defined(_MSC_VER) || defined(DISABLE_SSE_TEST) || __x86_64 || __ppc || __ppc64
- 
+ #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




More information about the fedora-extras-commits mailing list