summaryrefslogtreecommitdiff
path: root/parallel/pvm3/patches/patch-ai
blob: 4eca27166b5a17eadd653640748ed3b4d93e90dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
$NetBSD: patch-ai,v 1.2 1999/11/23 16:05:31 dmcmahill Exp $
 
--- ./src/pmsg.c.orig	Thu Jul  8 15:00:05 1999
+++ ./src/pmsg.c	Sun Oct 31 11:56:52 1999
@@ -269,4 +269,18 @@
 
 			for (j = 0; j < n; j++)
+				if (j < n/2) {
+					if (p[n/2 - 1 - j ]
+					    != thesigs[i].bytes[j])
+						break;
+				} else {
+					if (p[n + n/2 - 1 - j ]
+					    != thesigs[i].bytes[j])
+						break;
+				}
+
+			if (j == n)
+				return ((1 << 4) | i) << o;
+
+			for (j = 0; j < n; j++)
 				if (p[n - 1 - j] != thesigs[i].bytes[j])
 					break;
@@ -275,5 +289,6 @@
 		}
 	}
-	fprintf(stderr, "can't generate signature for my integer byte order\n");
+	fprintf(stderr,
+		"can't generate signature for my floating point byte order\n");
 	abort();
 	return 0;