summaryrefslogtreecommitdiffstats
path: root/games/koules/patches/no_inline_asm.diff
blob: 95c02bcf7805ea12b5c541c2413a67cd48d1e8a9 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
diff -Naur koules1.4/xlib/shmbitmap.c koules1.4.patched/xlib/shmbitmap.c
--- koules1.4/xlib/shmbitmap.c	1998-03-04 13:59:19.000000000 -0500
+++ koules1.4.patched/xlib/shmbitmap.c	2009-04-15 06:44:35.000000000 -0400
@@ -237,7 +237,7 @@
 #define __clipy1 0
 #undef __clipy2
 #define __clipy2 (MAPHEIGHT+19)
-#ifdef __i386__
+#if 0
 static INLINE int
 muldiv64 (int CONST m1, int CONST m2, int CONST d)
 {
@@ -333,7 +333,7 @@
 	  }
 	if (r1 & 1)
 	  {			/* left */
-#ifdef __i386__
+#if 0
 	    y1 += muldiv64 (__clipx1 - x1, y2 - y1, x2 - x1);
 #else
 	    y1 += (long) (__clipx1 - x1) * (long) (y2 - y1) / (long) (x2 - x1);
@@ -342,7 +342,7 @@
 	  }
 	else if (r1 & 2)
 	  {			/* right */
-#ifdef __i386__
+#if 0
 	    y1 += muldiv64 (__clipx2 - x1, y2 - y1, x2 - x1);
 #else
 	    y1 += (long) (__clipx2 - x1) * (long) (y2 - y1) / (long) (x2 - x1);
@@ -351,7 +351,7 @@
 	  }
 	else if (r1 & 4)
 	  {			/* top */
-#ifdef __i386__
+#if 0
 	    x1 += muldiv64 (__clipy1 - y1, x2 - x1, y2 - y1);
 #else
 	    x1 += (long) (__clipy1 - y1) * (long) (x2 - x1) / (long) (y2 - y1);
@@ -360,7 +360,7 @@
 	  }
 	else if (r1 & 8)
 	  {			/* bottom */
-#ifdef __i386__
+#if 0
 	    x1 += muldiv64 (__clipy2 - y1, x2 - x1, y2 - y1);
 #else
 	    x1 += (long) (__clipy2 - y1) * (long) (x2 - x1) / (long) (y2 - y1);