Mercurial > sdl-ios-xcode
comparison src/audio/SDL_mixer_MMX_VC.c @ 1330:450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
using Visual C++ 2005
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 06 Feb 2006 08:28:51 +0000 |
parents | 173c063d4f55 |
children | d910939febfa |
comparison
equal
deleted
inserted
replaced
1329:bc67bbf87818 | 1330:450721ad5436 |
---|---|
1 | |
2 #include "SDL_mixer_MMX_VC.h" | |
3 | |
1 #if defined(USE_ASM_MIXER_VC) | 4 #if defined(USE_ASM_MIXER_VC) |
2 // MMX assembler version of SDL_MixAudio for signed little endian 16 bit samples and signed 8 bit samples | 5 // MMX assembler version of SDL_MixAudio for signed little endian 16 bit samples and signed 8 bit samples |
3 // Copyright 2002 Stephane Marchesin (stephane.marchesin@wanadoo.fr) | 6 // Copyright 2002 Stephane Marchesin (stephane.marchesin@wanadoo.fr) |
4 // Converted to Intel ASM notation by Cth | 7 // Converted to Intel ASM notation by Cth |
5 // This code is licensed under the LGPL (see COPYING for details) | 8 // This code is licensed under the LGPL (see COPYING for details) |
9 | 12 |
10 | 13 |
11 //////////////////////////////////////////////// | 14 //////////////////////////////////////////////// |
12 // Mixing for 16 bit signed buffers | 15 // Mixing for 16 bit signed buffers |
13 //////////////////////////////////////////////// | 16 //////////////////////////////////////////////// |
14 | |
15 #ifndef __WATCOMC__ | |
16 #include <windows.h> | |
17 #include <stdio.h> | |
18 #endif | |
19 | 17 |
20 void SDL_MixAudio_MMX_S16_VC(char* dst,char* src,unsigned int nSize,int volume) | 18 void SDL_MixAudio_MMX_S16_VC(char* dst,char* src,unsigned int nSize,int volume) |
21 { | 19 { |
22 __asm | 20 __asm |
23 { | 21 { |