Mercurial > sdl-ios-xcode
comparison src/video/SDL_stretch.c @ 1228:f4a3a4129d04
From Mike Frysinger and/or Gentoo:
- libsdl-SDL_stretch-PIC.patch
ignoring the general fact of how SDL_stretch relies on executing dynamic code,
the inline asm should let gcc handle the a details for getting the actual
address for _copy_row as it will do the right thing
test case: http://dev.gentoo.org/~vapier/libsdl/sdl-stretch.tar.bz2
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Thu, 05 Jan 2006 07:20:12 +0000 |
parents | 10b3fb28c86b |
children | 228c94f0b5dc |
comparison
equal
deleted
inserted
replaced
1227:3202d727bb4b | 1228:f4a3a4129d04 |
---|---|
284 copy_row3(srcp, srcrect->w, dstp, dstrect->w); | 284 copy_row3(srcp, srcrect->w, dstp, dstrect->w); |
285 break; | 285 break; |
286 default: | 286 default: |
287 #ifdef __GNUC__ | 287 #ifdef __GNUC__ |
288 __asm__ __volatile__ ( | 288 __asm__ __volatile__ ( |
289 "call _copy_row" | 289 "call *%4" |
290 : "=&D" (u1), "=&S" (u2) | 290 : "=&D" (u1), "=&S" (u2) |
291 : "0" (dstp), "1" (srcp) | 291 : "0" (dstp), "1" (srcp), "r" (&_copy_row) |
292 : "memory" ); | 292 : "memory" ); |
293 #else | 293 #else |
294 #ifdef WIN32 | 294 #ifdef WIN32 |
295 { void *code = ©_row; | 295 { void *code = ©_row; |
296 __asm { | 296 __asm { |