Mercurial > sdl-ios-xcode
comparison src/video/mmx.h @ 738:82b85b731fe3
Date: Mon, 10 Nov 2003 19:57:56 +0100
From: Stephane Marchesin <stephane.marchesin@wanadoo.fr>
Subject: [SDL] SDL and gcc >= 3.3.1 fix
Lately, I upgraded my gcc compiler and could trigger the error described
in this thread :
http://www.libsdl.org/pipermail/sdl/2003-September/056163.html
SDL_RLEaccel.c: In function `RLEClipBlit':
SDL_RLEaccel.c:845: error: invalid `asm': invalid expression as operand
SDL_RLEaccel.c:845: error: invalid `asm': invalid expression as operand
SDL_RLEaccel.c:845: error: invalid `asm': invalid expression as operand
The attached patch fixes this issue, and is smaller than the previous
one, as I was able to trigger the issue, so I could narrow it.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 14 Nov 2003 20:21:22 +0000 |
parents | 5bb080d35049 |
children | 450721ad5436 |
comparison
equal
deleted
inserted
replaced
737:7e4347dd2f9c | 738:82b85b731fe3 |
---|---|
351 : "X" (imm) ) | 351 : "X" (imm) ) |
352 | 352 |
353 #define mmx_m2r(op, mem, reg) \ | 353 #define mmx_m2r(op, mem, reg) \ |
354 __asm__ __volatile__ (#op " %0, %%" #reg \ | 354 __asm__ __volatile__ (#op " %0, %%" #reg \ |
355 : /* nothing */ \ | 355 : /* nothing */ \ |
356 : "X" (mem)) | 356 : "m" (mem)) |
357 | 357 |
358 #define mmx_r2m(op, reg, mem) \ | 358 #define mmx_r2m(op, reg, mem) \ |
359 __asm__ __volatile__ (#op " %%" #reg ", %0" \ | 359 __asm__ __volatile__ (#op " %%" #reg ", %0" \ |
360 : "=X" (mem) \ | 360 : "=X" (mem) \ |
361 : /* nothing */ ) | 361 : /* nothing */ ) |