Mercurial > sdl-ios-xcode
comparison src/audio/SDL_mixer_MMX_VC.c @ 1668:4da1ee79c9af SDL-1.3
more tweaking indent options
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 29 May 2006 04:04:35 +0000 |
parents | 782fd950bd46 |
children | a1ebb17f9c52 |
comparison
equal
deleted
inserted
replaced
1667:1fddae038bc8 | 1668:4da1ee79c9af |
---|---|
36 //////////////////////////////////////////////// | 36 //////////////////////////////////////////////// |
37 // Mixing for 16 bit signed buffers | 37 // Mixing for 16 bit signed buffers |
38 //////////////////////////////////////////////// | 38 //////////////////////////////////////////////// |
39 | 39 |
40 void | 40 void |
41 SDL_MixAudio_MMX_S16_VC (char *dst, char *src, unsigned int nSize, int volume) | 41 SDL_MixAudio_MMX_S16_VC(char *dst, char *src, unsigned int nSize, int volume) |
42 { | 42 { |
43 __asm { | 43 __asm { |
44 | 44 |
45 push edi push esi push ebx mov edi, dst // edi = dst | 45 push edi push esi push ebx mov edi, dst // edi = dst |
46 mov esi, src // esi = src | 46 mov esi, src // esi = src |
100 //////////////////////////////////////////////// | 100 //////////////////////////////////////////////// |
101 // Mixing for 8 bit signed buffers | 101 // Mixing for 8 bit signed buffers |
102 //////////////////////////////////////////////// | 102 //////////////////////////////////////////////// |
103 | 103 |
104 void | 104 void |
105 SDL_MixAudio_MMX_S8_VC (char *dst, char *src, unsigned int nSize, int volume) | 105 SDL_MixAudio_MMX_S8_VC(char *dst, char *src, unsigned int nSize, int volume) |
106 { | 106 { |
107 _asm { | 107 _asm { |
108 | 108 |
109 push edi push esi push ebx mov edi, dst //movl %0,%%edi // edi = dst | 109 push edi push esi push ebx mov edi, dst //movl %0,%%edi // edi = dst |
110 mov esi, src //%1,%%esi // esi = src | 110 mov esi, src //%1,%%esi // esi = src |