Re: [AD] patch: asm cleanup.

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Henrik Stokseth wrote:

the attached patch modifies some macros so that they play more nice with other preprocessors than gcc's own.

missed a spot. here's an additional patch. apply after the first ones.

--
One OS to rule them all,
one OS to find them,
one OS to bring them all
and in the darkness bind them.

--- allegro/src/i386/iscanmmx.s.orig	Mon Jun  2 17:03:11 2003
+++ allegro/src/i386/iscanmmx.s	Mon Jun  2 16:57:56 2003
@@ -769,7 +769,7 @@
    fxch %st(1)                   /* swap uvz stack back to vuz */
 
 /* main body of the perspective-correct texture mapping routine */
-#define INIT_PTEX(extra...)                                           \
+#define INIT_PTEX_START                                               \
    pushl %ebp                                                       ; \
    movl %esp, %ebp                                                  ; \
    subl $100, %esp               /* local variables */              ; \
@@ -803,10 +803,9 @@
    fstps DV4                                                        ; \
    fstps DZ4                                                        ; \
 								    ; \
-   START_FP_DIV()                                                   ; \
-								    ; \
-   extra                                                            ; \
-								    ; \
+   START_FP_DIV()
+
+#define INIT_PTEX_END						      \
    movl POLYSEG_VSHIFT(%esi), %ecx                                  ; \
    movl POLYSEG_VMASK(%esi), %eax                                   ; \
    movl POLYSEG_UMASK(%esi), %edx                                   ; \


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/