Mercurial > sdl-ios-xcode
comparison src/audio/SDL_mixer_MMX_VC.c @ 1895:c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 10 Jul 2006 21:04:37 +0000 |
parents | e3242177fe4a |
children | 1863fa2050e8 |
comparison
equal
deleted
inserted
replaced
1894:c69cee13dd76 | 1895:c121d94672cb |
---|---|
35 | 35 |
36 //////////////////////////////////////////////// | 36 //////////////////////////////////////////////// |
37 // Mixing for 16 bit signed buffers | 37 // Mixing for 16 bit signed buffers |
38 //////////////////////////////////////////////// | 38 //////////////////////////////////////////////// |
39 | 39 |
40 void SDL_MixAudio_MMX_S16_VC(char* dst,char* src,unsigned int nSize,int volume) | 40 void |
41 SDL_MixAudio_MMX_S16_VC(char *dst, char *src, unsigned int nSize, int volume) | |
41 { | 42 { |
43 /* *INDENT-OFF* */ | |
42 __asm | 44 __asm |
43 { | 45 { |
44 | 46 |
45 push edi | 47 push edi |
46 push esi | 48 push esi |
109 | 111 |
110 pop ebx | 112 pop ebx |
111 pop esi | 113 pop esi |
112 pop edi | 114 pop edi |
113 } | 115 } |
114 | 116 /* *INDENT-ON* */ |
115 } | 117 } |
116 | 118 |
117 //////////////////////////////////////////////// | 119 //////////////////////////////////////////////// |
118 // Mixing for 8 bit signed buffers | 120 // Mixing for 8 bit signed buffers |
119 //////////////////////////////////////////////// | 121 //////////////////////////////////////////////// |
120 | 122 |
121 void SDL_MixAudio_MMX_S8_VC(char* dst,char* src,unsigned int nSize,int volume) | 123 void |
124 SDL_MixAudio_MMX_S8_VC(char *dst, char *src, unsigned int nSize, int volume) | |
122 { | 125 { |
126 /* *INDENT-OFF* */ | |
123 _asm | 127 _asm |
124 { | 128 { |
125 | 129 |
126 push edi | 130 push edi |
127 push esi | 131 push esi |
174 | 178 |
175 pop ebx | 179 pop ebx |
176 pop esi | 180 pop esi |
177 pop edi | 181 pop edi |
178 } | 182 } |
183 /* *INDENT-ON* */ | |
179 } | 184 } |
180 | 185 |
181 #endif /* SDL_ASSEMBLY_ROUTINES */ | 186 #endif /* SDL_ASSEMBLY_ROUTINES */ |
187 | |
188 /* vi: set ts=4 sw=4 expandtab: */ |