author  Sam Lantinga <slouken@libsdl.org> 
Sat, 07 Jun 2014 18:20:01 0700  
changeset 8840  9b6ddcbdea65 
parent 8583  fb2933ca805f 
child 9015  45f11ff360a8 
permissions  rwrr 
1330
450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

1 
/* 
5535
96594ac5fd1a
SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents:
5455
diff
changeset

2 
Simple DirectMedia Layer 
8149
681eb46b8ac4
Fixed bug 2374  Update copyright for 2014...
Sam Lantinga <slouken@libsdl.org>
parents:
8093
diff
changeset

3 
Copyright (C) 19972014 Sam Lantinga <slouken@libsdl.org> 
1330
450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

4 

5535
96594ac5fd1a
SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents:
5455
diff
changeset

5 
This software is provided 'asis', without any express or implied 
96594ac5fd1a
SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents:
5455
diff
changeset

6 
warranty. In no event will the authors be held liable for any damages 
96594ac5fd1a
SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents:
5455
diff
changeset

7 
arising from the use of this software. 
1330
450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

8 

5535
96594ac5fd1a
SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents:
5455
diff
changeset

9 
Permission is granted to anyone to use this software for any purpose, 
96594ac5fd1a
SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents:
5455
diff
changeset

10 
including commercial applications, and to alter it and redistribute it 
96594ac5fd1a
SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents:
5455
diff
changeset

11 
freely, subject to the following restrictions: 
1330
450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

12 

5535
96594ac5fd1a
SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents:
5455
diff
changeset

13 
1. The origin of this software must not be misrepresented; you must not 
96594ac5fd1a
SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents:
5455
diff
changeset

14 
claim that you wrote the original software. If you use this software 
96594ac5fd1a
SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents:
5455
diff
changeset

15 
in a product, an acknowledgment in the product documentation would be 
96594ac5fd1a
SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents:
5455
diff
changeset

16 
appreciated but is not required. 
96594ac5fd1a
SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents:
5455
diff
changeset

17 
2. Altered source versions must be plainly marked as such, and must not be 
96594ac5fd1a
SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents:
5455
diff
changeset

18 
misrepresented as being the original software. 
96594ac5fd1a
SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents:
5455
diff
changeset

19 
3. This notice may not be removed or altered from any source distribution. 
1330
450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

20 
*/ 
8093
b43765095a6f
Make internal SDL sources include SDL_internal.h instead of SDL_config.h
Ryan C. Gordon <icculus@icculus.org>
parents:
8056
diff
changeset

21 
#include "../SDL_internal.h" 
1330
450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

22 

450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

23 
/* This file contains portable stdlib functions for SDL */ 
450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

24 

1354
22f39393668a
Fixed build problem with SDL_string.c
Sam Lantinga <slouken@libsdl.org>
parents:
1346
diff
changeset

25 
#include "SDL_stdinc.h" 
7351
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

26 
#include "../libm/math_libm.h" 
1330
450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

27 

7351
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

28 

668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

29 
double 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

30 
SDL_atan(double x) 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

31 
{ 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

32 
#ifdef HAVE_ATAN 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

33 
return atan(x); 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

34 
#else 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

35 
return SDL_uclibc_atan(x); 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

36 
#endif /* HAVE_ATAN */ 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

37 
} 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

38 

668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

39 
double 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

40 
SDL_atan2(double x, double y) 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

41 
{ 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

42 
#if defined(HAVE_ATAN2) 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

43 
return atan2(x, y); 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

44 
#else 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

45 
return SDL_uclibc_atan2(x, y); 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

46 
#endif /* HAVE_ATAN2 */ 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

47 
} 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

48 

668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

49 
double 
8056
abd9434c5d3e
Hook up SDL_acos and SDL_asin properly.
Ryan C. Gordon <icculus@icculus.org>
parents:
8033
diff
changeset

50 
SDL_acos(double val) 
abd9434c5d3e
Hook up SDL_acos and SDL_asin properly.
Ryan C. Gordon <icculus@icculus.org>
parents:
8033
diff
changeset

51 
{ 
abd9434c5d3e
Hook up SDL_acos and SDL_asin properly.
Ryan C. Gordon <icculus@icculus.org>
parents:
8033
diff
changeset

52 
#if defined(HAVE_ACOS) 
abd9434c5d3e
Hook up SDL_acos and SDL_asin properly.
Ryan C. Gordon <icculus@icculus.org>
parents:
8033
diff
changeset

53 
return acos(val); 
abd9434c5d3e
Hook up SDL_acos and SDL_asin properly.
Ryan C. Gordon <icculus@icculus.org>
parents:
8033
diff
changeset

54 
#else 
abd9434c5d3e
Hook up SDL_acos and SDL_asin properly.
Ryan C. Gordon <icculus@icculus.org>
parents:
8033
diff
changeset

55 
double result; 
abd9434c5d3e
Hook up SDL_acos and SDL_asin properly.
Ryan C. Gordon <icculus@icculus.org>
parents:
8033
diff
changeset

56 
if (val == 1.0) { 
abd9434c5d3e
Hook up SDL_acos and SDL_asin properly.
Ryan C. Gordon <icculus@icculus.org>
parents:
8033
diff
changeset

57 
result = M_PI; 
abd9434c5d3e
Hook up SDL_acos and SDL_asin properly.
Ryan C. Gordon <icculus@icculus.org>
parents:
8033
diff
changeset

58 
} else { 
abd9434c5d3e
Hook up SDL_acos and SDL_asin properly.
Ryan C. Gordon <icculus@icculus.org>
parents:
8033
diff
changeset

59 
result = SDL_atan(SDL_sqrt(1.0  val * val) / val); 
abd9434c5d3e
Hook up SDL_acos and SDL_asin properly.
Ryan C. Gordon <icculus@icculus.org>
parents:
8033
diff
changeset

60 
if (result < 0.0) 
abd9434c5d3e
Hook up SDL_acos and SDL_asin properly.
Ryan C. Gordon <icculus@icculus.org>
parents:
8033
diff
changeset

61 
{ 
abd9434c5d3e
Hook up SDL_acos and SDL_asin properly.
Ryan C. Gordon <icculus@icculus.org>
parents:
8033
diff
changeset

62 
result += M_PI; 
abd9434c5d3e
Hook up SDL_acos and SDL_asin properly.
Ryan C. Gordon <icculus@icculus.org>
parents:
8033
diff
changeset

63 
} 
abd9434c5d3e
Hook up SDL_acos and SDL_asin properly.
Ryan C. Gordon <icculus@icculus.org>
parents:
8033
diff
changeset

64 
} 
abd9434c5d3e
Hook up SDL_acos and SDL_asin properly.
Ryan C. Gordon <icculus@icculus.org>
parents:
8033
diff
changeset

65 
return result; 
abd9434c5d3e
Hook up SDL_acos and SDL_asin properly.
Ryan C. Gordon <icculus@icculus.org>
parents:
8033
diff
changeset

66 
#endif 
abd9434c5d3e
Hook up SDL_acos and SDL_asin properly.
Ryan C. Gordon <icculus@icculus.org>
parents:
8033
diff
changeset

67 
} 
abd9434c5d3e
Hook up SDL_acos and SDL_asin properly.
Ryan C. Gordon <icculus@icculus.org>
parents:
8033
diff
changeset

68 

abd9434c5d3e
Hook up SDL_acos and SDL_asin properly.
Ryan C. Gordon <icculus@icculus.org>
parents:
8033
diff
changeset

69 
double 
abd9434c5d3e
Hook up SDL_acos and SDL_asin properly.
Ryan C. Gordon <icculus@icculus.org>
parents:
8033
diff
changeset

70 
SDL_asin(double val) 
abd9434c5d3e
Hook up SDL_acos and SDL_asin properly.
Ryan C. Gordon <icculus@icculus.org>
parents:
8033
diff
changeset

71 
{ 
abd9434c5d3e
Hook up SDL_acos and SDL_asin properly.
Ryan C. Gordon <icculus@icculus.org>
parents:
8033
diff
changeset

72 
#if defined(HAVE_ASIN) 
abd9434c5d3e
Hook up SDL_acos and SDL_asin properly.
Ryan C. Gordon <icculus@icculus.org>
parents:
8033
diff
changeset

73 
return asin(val); 
abd9434c5d3e
Hook up SDL_acos and SDL_asin properly.
Ryan C. Gordon <icculus@icculus.org>
parents:
8033
diff
changeset

74 
#else 
abd9434c5d3e
Hook up SDL_acos and SDL_asin properly.
Ryan C. Gordon <icculus@icculus.org>
parents:
8033
diff
changeset

75 
double result; 
abd9434c5d3e
Hook up SDL_acos and SDL_asin properly.
Ryan C. Gordon <icculus@icculus.org>
parents:
8033
diff
changeset

76 
if (val == 1.0) { 
abd9434c5d3e
Hook up SDL_acos and SDL_asin properly.
Ryan C. Gordon <icculus@icculus.org>
parents:
8033
diff
changeset

77 
result = (M_PI / 2.0); 
abd9434c5d3e
Hook up SDL_acos and SDL_asin properly.
Ryan C. Gordon <icculus@icculus.org>
parents:
8033
diff
changeset

78 
} else { 
abd9434c5d3e
Hook up SDL_acos and SDL_asin properly.
Ryan C. Gordon <icculus@icculus.org>
parents:
8033
diff
changeset

79 
result = (M_PI / 2.0)  SDL_acos(val); 
abd9434c5d3e
Hook up SDL_acos and SDL_asin properly.
Ryan C. Gordon <icculus@icculus.org>
parents:
8033
diff
changeset

80 
} 
abd9434c5d3e
Hook up SDL_acos and SDL_asin properly.
Ryan C. Gordon <icculus@icculus.org>
parents:
8033
diff
changeset

81 
return result; 
abd9434c5d3e
Hook up SDL_acos and SDL_asin properly.
Ryan C. Gordon <icculus@icculus.org>
parents:
8033
diff
changeset

82 
#endif 
abd9434c5d3e
Hook up SDL_acos and SDL_asin properly.
Ryan C. Gordon <icculus@icculus.org>
parents:
8033
diff
changeset

83 
} 
abd9434c5d3e
Hook up SDL_acos and SDL_asin properly.
Ryan C. Gordon <icculus@icculus.org>
parents:
8033
diff
changeset

84 

abd9434c5d3e
Hook up SDL_acos and SDL_asin properly.
Ryan C. Gordon <icculus@icculus.org>
parents:
8033
diff
changeset

85 
double 
7351
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

86 
SDL_ceil(double x) 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

87 
{ 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

88 
#ifdef HAVE_CEIL 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

89 
return ceil(x); 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

90 
#else 
8033
8181c3a4a055
Fixed bug 2274  SDL_ceil is incorrectly implemented when HAVE_LIBC is not defined
Sam Lantinga <slouken@libsdl.org>
parents:
7357
diff
changeset

91 
double integer = SDL_floor(x); 
8181c3a4a055
Fixed bug 2274  SDL_ceil is incorrectly implemented when HAVE_LIBC is not defined
Sam Lantinga <slouken@libsdl.org>
parents:
7357
diff
changeset

92 
double fraction = x  integer; 
8181c3a4a055
Fixed bug 2274  SDL_ceil is incorrectly implemented when HAVE_LIBC is not defined
Sam Lantinga <slouken@libsdl.org>
parents:
7357
diff
changeset

93 
if (fraction > 0.0) { 
8181c3a4a055
Fixed bug 2274  SDL_ceil is incorrectly implemented when HAVE_LIBC is not defined
Sam Lantinga <slouken@libsdl.org>
parents:
7357
diff
changeset

94 
integer += 1.0; 
8181c3a4a055
Fixed bug 2274  SDL_ceil is incorrectly implemented when HAVE_LIBC is not defined
Sam Lantinga <slouken@libsdl.org>
parents:
7357
diff
changeset

95 
} 
8181c3a4a055
Fixed bug 2274  SDL_ceil is incorrectly implemented when HAVE_LIBC is not defined
Sam Lantinga <slouken@libsdl.org>
parents:
7357
diff
changeset

96 
return integer; 
7351
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

97 
#endif /* HAVE_CEIL */ 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

98 
} 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

99 

668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

100 
double 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

101 
SDL_copysign(double x, double y) 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

102 
{ 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

103 
#if defined(HAVE_COPYSIGN) 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

104 
return copysign(x, y); 
8478
337b5dc0797b
WinRT: build fixes and additional WinRTrelated integrations with SDL 2.0.0
David Ludwig <dludwig@pobox.com>
parents:
7357
diff
changeset

105 
#elif defined(HAVE__COPYSIGN) 
337b5dc0797b
WinRT: build fixes and additional WinRTrelated integrations with SDL 2.0.0
David Ludwig <dludwig@pobox.com>
parents:
7357
diff
changeset

106 
return _copysign(x, y); 
7351
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

107 
#else 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

108 
return SDL_uclibc_copysign(x, y); 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

109 
#endif /* HAVE_COPYSIGN */ 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

110 
} 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

111 

668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

112 
double 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

113 
SDL_cos(double x) 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

114 
{ 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

115 
#if defined(HAVE_COS) 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

116 
return cos(x); 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

117 
#else 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

118 
return SDL_uclibc_cos(x); 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

119 
#endif /* HAVE_COS */ 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

120 
} 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

121 

668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

122 
float 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

123 
SDL_cosf(float x) 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

124 
{ 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

125 
#ifdef HAVE_COSF 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

126 
return cosf(x); 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

127 
#else 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

128 
return (float)SDL_cos((double)x); 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

129 
#endif 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

130 
} 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

131 

668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

132 
double 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

133 
SDL_fabs(double x) 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

134 
{ 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

135 
#if defined(HAVE_FABS) 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

136 
return fabs(x); 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

137 
#else 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

138 
return SDL_uclibc_fabs(x); 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

139 
#endif /* HAVE_FABS */ 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

140 
} 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

141 

668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

142 
double 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

143 
SDL_floor(double x) 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

144 
{ 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

145 
#if defined(HAVE_FLOOR) 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

146 
return floor(x); 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

147 
#else 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

148 
return SDL_uclibc_floor(x); 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

149 
#endif /* HAVE_FLOOR */ 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

150 
} 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

151 

668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

152 
double 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

153 
SDL_log(double x) 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

154 
{ 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

155 
#if defined(HAVE_LOG) 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

156 
return log(x); 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

157 
#else 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

158 
return SDL_uclibc_log(x); 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

159 
#endif /* HAVE_LOG */ 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

160 
} 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

161 

668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

162 
double 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

163 
SDL_pow(double x, double y) 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

164 
{ 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

165 
#if defined(HAVE_POW) 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

166 
return pow(x, y); 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

167 
#else 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

168 
return SDL_uclibc_pow(x, y); 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

169 
#endif /* HAVE_POW */ 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

170 
} 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

171 

668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

172 
double 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

173 
SDL_scalbn(double x, int n) 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

174 
{ 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

175 
#if defined(HAVE_SCALBN) 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

176 
return scalbn(x, n); 
8478
337b5dc0797b
WinRT: build fixes and additional WinRTrelated integrations with SDL 2.0.0
David Ludwig <dludwig@pobox.com>
parents:
7357
diff
changeset

177 
#elif defined(HAVE__SCALB) 
337b5dc0797b
WinRT: build fixes and additional WinRTrelated integrations with SDL 2.0.0
David Ludwig <dludwig@pobox.com>
parents:
7357
diff
changeset

178 
return _scalb(x, n); 
7351
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

179 
#else 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

180 
return SDL_uclibc_scalbn(x, n); 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

181 
#endif /* HAVE_SCALBN */ 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

182 
} 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

183 

668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

184 
double 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

185 
SDL_sin(double x) 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

186 
{ 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

187 
#if defined(HAVE_SIN) 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

188 
return sin(x); 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

189 
#else 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

190 
return SDL_uclibc_sin(x); 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

191 
#endif /* HAVE_SIN */ 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

192 
} 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

193 

668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

194 
float 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

195 
SDL_sinf(float x) 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

196 
{ 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

197 
#ifdef HAVE_SINF 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

198 
return sinf(x); 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

199 
#else 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

200 
return (float)SDL_sin((double)x); 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

201 
#endif /* HAVE_SINF */ 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

202 
} 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

203 

668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

204 
double 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

205 
SDL_sqrt(double x) 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

206 
{ 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

207 
#if defined(HAVE_SQRT) 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

208 
return sqrt(x); 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

209 
#else 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

210 
return SDL_uclibc_sqrt(x); 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

211 
#endif 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

212 
} 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

213 

8840
9b6ddcbdea65
Added SDL_sqrtf(), SDL_tan(), SDL_tanf()
Sam Lantinga <slouken@libsdl.org>
parents:
8583
diff
changeset

214 
float 
9b6ddcbdea65
Added SDL_sqrtf(), SDL_tan(), SDL_tanf()
Sam Lantinga <slouken@libsdl.org>
parents:
8583
diff
changeset

215 
SDL_sqrtf(float x) 
9b6ddcbdea65
Added SDL_sqrtf(), SDL_tan(), SDL_tanf()
Sam Lantinga <slouken@libsdl.org>
parents:
8583
diff
changeset

216 
{ 
9b6ddcbdea65
Added SDL_sqrtf(), SDL_tan(), SDL_tanf()
Sam Lantinga <slouken@libsdl.org>
parents:
8583
diff
changeset

217 
#if defined(HAVE_SQRTF) 
9b6ddcbdea65
Added SDL_sqrtf(), SDL_tan(), SDL_tanf()
Sam Lantinga <slouken@libsdl.org>
parents:
8583
diff
changeset

218 
return sqrtf(x); 
9b6ddcbdea65
Added SDL_sqrtf(), SDL_tan(), SDL_tanf()
Sam Lantinga <slouken@libsdl.org>
parents:
8583
diff
changeset

219 
#else 
9b6ddcbdea65
Added SDL_sqrtf(), SDL_tan(), SDL_tanf()
Sam Lantinga <slouken@libsdl.org>
parents:
8583
diff
changeset

220 
return (float)SDL_sqrt((double)x); 
9b6ddcbdea65
Added SDL_sqrtf(), SDL_tan(), SDL_tanf()
Sam Lantinga <slouken@libsdl.org>
parents:
8583
diff
changeset

221 
#endif 
9b6ddcbdea65
Added SDL_sqrtf(), SDL_tan(), SDL_tanf()
Sam Lantinga <slouken@libsdl.org>
parents:
8583
diff
changeset

222 
} 
9b6ddcbdea65
Added SDL_sqrtf(), SDL_tan(), SDL_tanf()
Sam Lantinga <slouken@libsdl.org>
parents:
8583
diff
changeset

223 

9b6ddcbdea65
Added SDL_sqrtf(), SDL_tan(), SDL_tanf()
Sam Lantinga <slouken@libsdl.org>
parents:
8583
diff
changeset

224 
double 
9b6ddcbdea65
Added SDL_sqrtf(), SDL_tan(), SDL_tanf()
Sam Lantinga <slouken@libsdl.org>
parents:
8583
diff
changeset

225 
SDL_tan(double x) 
9b6ddcbdea65
Added SDL_sqrtf(), SDL_tan(), SDL_tanf()
Sam Lantinga <slouken@libsdl.org>
parents:
8583
diff
changeset

226 
{ 
9b6ddcbdea65
Added SDL_sqrtf(), SDL_tan(), SDL_tanf()
Sam Lantinga <slouken@libsdl.org>
parents:
8583
diff
changeset

227 
#if defined(HAVE_TAN) 
9b6ddcbdea65
Added SDL_sqrtf(), SDL_tan(), SDL_tanf()
Sam Lantinga <slouken@libsdl.org>
parents:
8583
diff
changeset

228 
return tan(x); 
9b6ddcbdea65
Added SDL_sqrtf(), SDL_tan(), SDL_tanf()
Sam Lantinga <slouken@libsdl.org>
parents:
8583
diff
changeset

229 
#else 
9b6ddcbdea65
Added SDL_sqrtf(), SDL_tan(), SDL_tanf()
Sam Lantinga <slouken@libsdl.org>
parents:
8583
diff
changeset

230 
return SDL_uclibc_tan(x); 
9b6ddcbdea65
Added SDL_sqrtf(), SDL_tan(), SDL_tanf()
Sam Lantinga <slouken@libsdl.org>
parents:
8583
diff
changeset

231 
#endif 
9b6ddcbdea65
Added SDL_sqrtf(), SDL_tan(), SDL_tanf()
Sam Lantinga <slouken@libsdl.org>
parents:
8583
diff
changeset

232 
} 
9b6ddcbdea65
Added SDL_sqrtf(), SDL_tan(), SDL_tanf()
Sam Lantinga <slouken@libsdl.org>
parents:
8583
diff
changeset

233 

9b6ddcbdea65
Added SDL_sqrtf(), SDL_tan(), SDL_tanf()
Sam Lantinga <slouken@libsdl.org>
parents:
8583
diff
changeset

234 
float 
9b6ddcbdea65
Added SDL_sqrtf(), SDL_tan(), SDL_tanf()
Sam Lantinga <slouken@libsdl.org>
parents:
8583
diff
changeset

235 
SDL_tanf(float x) 
9b6ddcbdea65
Added SDL_sqrtf(), SDL_tan(), SDL_tanf()
Sam Lantinga <slouken@libsdl.org>
parents:
8583
diff
changeset

236 
{ 
9b6ddcbdea65
Added SDL_sqrtf(), SDL_tan(), SDL_tanf()
Sam Lantinga <slouken@libsdl.org>
parents:
8583
diff
changeset

237 
#if defined(HAVE_TANF) 
9b6ddcbdea65
Added SDL_sqrtf(), SDL_tan(), SDL_tanf()
Sam Lantinga <slouken@libsdl.org>
parents:
8583
diff
changeset

238 
return tanf(x); 
9b6ddcbdea65
Added SDL_sqrtf(), SDL_tan(), SDL_tanf()
Sam Lantinga <slouken@libsdl.org>
parents:
8583
diff
changeset

239 
#else 
9b6ddcbdea65
Added SDL_sqrtf(), SDL_tan(), SDL_tanf()
Sam Lantinga <slouken@libsdl.org>
parents:
8583
diff
changeset

240 
return (float)SDL_tan((double)x); 
9b6ddcbdea65
Added SDL_sqrtf(), SDL_tan(), SDL_tanf()
Sam Lantinga <slouken@libsdl.org>
parents:
8583
diff
changeset

241 
#endif 
9b6ddcbdea65
Added SDL_sqrtf(), SDL_tan(), SDL_tanf()
Sam Lantinga <slouken@libsdl.org>
parents:
8583
diff
changeset

242 
} 
9b6ddcbdea65
Added SDL_sqrtf(), SDL_tan(), SDL_tanf()
Sam Lantinga <slouken@libsdl.org>
parents:
8583
diff
changeset

243 

7351
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

244 
int SDL_abs(int x) 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

245 
{ 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

246 
#ifdef HAVE_ABS 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

247 
return abs(x); 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

248 
#else 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

249 
return ((x) < 0 ? (x) : (x)); 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

250 
#endif 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

251 
} 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

252 

668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

253 
#ifdef HAVE_CTYPE_H 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

254 
int SDL_isdigit(int x) { return isdigit(x); } 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

255 
int SDL_isspace(int x) { return isspace(x); } 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

256 
int SDL_toupper(int x) { return toupper(x); } 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

257 
int SDL_tolower(int x) { return tolower(x); } 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

258 
#else 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

259 
int SDL_isdigit(int x) { return ((x) >= '0') && ((x) <= '9'); } 
7357
9bd0b241c941
Fixed SDL's implementation of isspace() to check form feed and vertical tab.
Philipp Wiesemann <philipp.wiesemann@arcor.de>
parents:
7351
diff
changeset

260 
int SDL_isspace(int x) { return ((x) == ' ')  ((x) == '\t')  ((x) == '\r')  ((x) == '\n')  ((x) == '\f')  ((x) == '\v'); } 
7351
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

261 
int SDL_toupper(int x) { return ((x) >= 'a') && ((x) <= 'z') ? ('A'+((x)'a')) : (x); } 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

262 
int SDL_tolower(int x) { return ((x) >= 'A') && ((x) <= 'Z') ? ('a'+((x)'A')) : (x); } 
668a3dc28361
Removed the inline functions from SDL_stdinc.h
Sam Lantinga <slouken@libsdl.org>
parents:
7180
diff
changeset

263 
#endif 
7003
eeaf77005c30
Improvements to stdlib.
Ryan C. Gordon <icculus@icculus.org>
parents:
6885
diff
changeset

264 

eeaf77005c30
Improvements to stdlib.
Ryan C. Gordon <icculus@icculus.org>
parents:
6885
diff
changeset

265 

1330
450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

266 
#ifndef HAVE_LIBC 
450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

267 
/* These are some C runtime intrinsics that need to be defined */ 
450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

268 

3255
f8a4214ce90a
Fixed compiling on 64bit Windows
Sam Lantinga <slouken@libsdl.org>
parents:
3253
diff
changeset

269 
#if defined(_MSC_VER) 
1330
450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

270 

1433
bb6839704ed6
SDL_windows.h is no longer necessary
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset

271 
#ifndef __FLTUSED__ 
bb6839704ed6
SDL_windows.h is no longer necessary
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset

272 
#define __FLTUSED__ 
3255
f8a4214ce90a
Fixed compiling on 64bit Windows
Sam Lantinga <slouken@libsdl.org>
parents:
3253
diff
changeset

273 
__declspec(selectany) int _fltused = 1; 
1433
bb6839704ed6
SDL_windows.h is no longer necessary
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset

274 
#endif 
3255
f8a4214ce90a
Fixed compiling on 64bit Windows
Sam Lantinga <slouken@libsdl.org>
parents:
3253
diff
changeset

275 

6355
3ef4d0e923cb
Fixed bug 1540: SDL 2.0 won't link on Visual Studio 2012 RC for x64
Sam Lantinga <slouken@libsdl.org>
parents:
6138
diff
changeset

276 
/* The optimizer on Visual Studio 2010/2012 generates memcpy() calls */ 
3ef4d0e923cb
Fixed bug 1540: SDL 2.0 won't link on Visual Studio 2012 RC for x64
Sam Lantinga <slouken@libsdl.org>
parents:
6138
diff
changeset

277 
#if _MSC_VER >= 1600 && defined(_WIN64) && !defined(_DEBUG) 
5455
5fbf5fc81aa8
Fixed linking x64 with Visual Studio 2010.
Sam Lantinga <slouken@libsdl.org>
parents:
5262
diff
changeset

278 
#include <intrin.h> 
5fbf5fc81aa8
Fixed linking x64 with Visual Studio 2010.
Sam Lantinga <slouken@libsdl.org>
parents:
5262
diff
changeset

279 

5fbf5fc81aa8
Fixed linking x64 with Visual Studio 2010.
Sam Lantinga <slouken@libsdl.org>
parents:
5262
diff
changeset

280 
#pragma function(memcpy) 
5fbf5fc81aa8
Fixed linking x64 with Visual Studio 2010.
Sam Lantinga <slouken@libsdl.org>
parents:
5262
diff
changeset

281 
void * memcpy ( void * destination, const void * source, size_t num ) 
5fbf5fc81aa8
Fixed linking x64 with Visual Studio 2010.
Sam Lantinga <slouken@libsdl.org>
parents:
5262
diff
changeset

282 
{ 
5fbf5fc81aa8
Fixed linking x64 with Visual Studio 2010.
Sam Lantinga <slouken@libsdl.org>
parents:
5262
diff
changeset

283 
const Uint8 *src = (const Uint8 *)source; 
5fbf5fc81aa8
Fixed linking x64 with Visual Studio 2010.
Sam Lantinga <slouken@libsdl.org>
parents:
5262
diff
changeset

284 
Uint8 *dst = (Uint8 *)destination; 
5fbf5fc81aa8
Fixed linking x64 with Visual Studio 2010.
Sam Lantinga <slouken@libsdl.org>
parents:
5262
diff
changeset

285 
size_t i; 
5fbf5fc81aa8
Fixed linking x64 with Visual Studio 2010.
Sam Lantinga <slouken@libsdl.org>
parents:
5262
diff
changeset

286 

5fbf5fc81aa8
Fixed linking x64 with Visual Studio 2010.
Sam Lantinga <slouken@libsdl.org>
parents:
5262
diff
changeset

287 
/* All WIN64 architectures have SSE, right? */ 
5fbf5fc81aa8
Fixed linking x64 with Visual Studio 2010.
Sam Lantinga <slouken@libsdl.org>
parents:
5262
diff
changeset

288 
if (!((uintptr_t) src & 15) && !((uintptr_t) dst & 15)) { 
5fbf5fc81aa8
Fixed linking x64 with Visual Studio 2010.
Sam Lantinga <slouken@libsdl.org>
parents:
5262
diff
changeset

289 
__m128 values[4]; 
5fbf5fc81aa8
Fixed linking x64 with Visual Studio 2010.
Sam Lantinga <slouken@libsdl.org>
parents:
5262
diff
changeset

290 
for (i = num / 64; i;) { 
5fbf5fc81aa8
Fixed linking x64 with Visual Studio 2010.
Sam Lantinga <slouken@libsdl.org>
parents:
5262
diff
changeset

291 
_mm_prefetch(src, _MM_HINT_NTA); 
5fbf5fc81aa8
Fixed linking x64 with Visual Studio 2010.
Sam Lantinga <slouken@libsdl.org>
parents:
5262
diff
changeset

292 
values[0] = *(__m128 *) (src + 0); 
5fbf5fc81aa8
Fixed linking x64 with Visual Studio 2010.
Sam Lantinga <slouken@libsdl.org>
parents:
5262
diff
changeset

293 
values[1] = *(__m128 *) (src + 16); 
5fbf5fc81aa8
Fixed linking x64 with Visual Studio 2010.
Sam Lantinga <slouken@libsdl.org>
parents:
5262
diff
changeset

294 
values[2] = *(__m128 *) (src + 32); 
5fbf5fc81aa8
Fixed linking x64 with Visual Studio 2010.
Sam Lantinga <slouken@libsdl.org>
parents:
5262
diff
changeset

295 
values[3] = *(__m128 *) (src + 48); 
5fbf5fc81aa8
Fixed linking x64 with Visual Studio 2010.
Sam Lantinga <slouken@libsdl.org>
parents:
5262
diff
changeset

296 
_mm_stream_ps((float *) (dst + 0), values[0]); 
5fbf5fc81aa8
Fixed linking x64 with Visual Studio 2010.
Sam Lantinga <slouken@libsdl.org>
parents:
5262
diff
changeset

297 
_mm_stream_ps((float *) (dst + 16), values[1]); 
5fbf5fc81aa8
Fixed linking x64 with Visual Studio 2010.
Sam Lantinga <slouken@libsdl.org>
parents:
5262
diff
changeset

298 
_mm_stream_ps((float *) (dst + 32), values[2]); 
5fbf5fc81aa8
Fixed linking x64 with Visual Studio 2010.
Sam Lantinga <slouken@libsdl.org>
parents:
5262
diff
changeset

299 
_mm_stream_ps((float *) (dst + 48), values[3]); 
5fbf5fc81aa8
Fixed linking x64 with Visual Studio 2010.
Sam Lantinga <slouken@libsdl.org>
parents:
5262
diff
changeset

300 
src += 64; 
5fbf5fc81aa8
Fixed linking x64 with Visual Studio 2010.
Sam Lantinga <slouken@libsdl.org>
parents:
5262
diff
changeset

301 
dst += 64; 
5fbf5fc81aa8
Fixed linking x64 with Visual Studio 2010.
Sam Lantinga <slouken@libsdl.org>
parents:
5262
diff
changeset

302 
} 
5fbf5fc81aa8
Fixed linking x64 with Visual Studio 2010.
Sam Lantinga <slouken@libsdl.org>
parents:
5262
diff
changeset

303 
num &= 63; 
5fbf5fc81aa8
Fixed linking x64 with Visual Studio 2010.
Sam Lantinga <slouken@libsdl.org>
parents:
5262
diff
changeset

304 
} 
5fbf5fc81aa8
Fixed linking x64 with Visual Studio 2010.
Sam Lantinga <slouken@libsdl.org>
parents:
5262
diff
changeset

305 

5fbf5fc81aa8
Fixed linking x64 with Visual Studio 2010.
Sam Lantinga <slouken@libsdl.org>
parents:
5262
diff
changeset

306 
while (num) { 
5fbf5fc81aa8
Fixed linking x64 with Visual Studio 2010.
Sam Lantinga <slouken@libsdl.org>
parents:
5262
diff
changeset

307 
*dst++ = *src++; 
5fbf5fc81aa8
Fixed linking x64 with Visual Studio 2010.
Sam Lantinga <slouken@libsdl.org>
parents:
5262
diff
changeset

308 
} 
5fbf5fc81aa8
Fixed linking x64 with Visual Studio 2010.
Sam Lantinga <slouken@libsdl.org>
parents:
5262
diff
changeset

309 
return destination; 
5fbf5fc81aa8
Fixed linking x64 with Visual Studio 2010.
Sam Lantinga <slouken@libsdl.org>
parents:
5262
diff
changeset

310 
} 
5fbf5fc81aa8
Fixed linking x64 with Visual Studio 2010.
Sam Lantinga <slouken@libsdl.org>
parents:
5262
diff
changeset

311 
#endif /* _MSC_VER == 1600 && defined(_WIN64) && !defined(_DEBUG) */ 
5fbf5fc81aa8
Fixed linking x64 with Visual Studio 2010.
Sam Lantinga <slouken@libsdl.org>
parents:
5262
diff
changeset

312 

5086
c2539ff054c8
Fixed compiling on Windows Mobile SDK 5.0 with Visual Studio 2008
Sam Lantinga <slouken@libsdl.org>
parents:
4868
diff
changeset

313 
#ifdef _M_IX86 
1433
bb6839704ed6
SDL_windows.h is no longer necessary
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset

314 

1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

315 
/* Float to long */ 
3253
5d7ef5970073
Fixed issues building 64bit Windows binary
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

316 
void 
5d7ef5970073
Fixed issues building 64bit Windows binary
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

317 
__declspec(naked) 
5d7ef5970073
Fixed issues building 64bit Windows binary
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

318 
_ftol() 
1345
7f32b9bede06
Fixes for Visual C++ 6.0
Sam Lantinga <slouken@libsdl.org>
parents:
1331
diff
changeset

319 
{ 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

320 
/* *INDENTOFF* */ 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

321 
__asm { 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

322 
push ebp 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

323 
mov ebp,esp 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

324 
sub esp,20h 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

325 
and esp,0FFFFFFF0h 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

326 
fld st(0) 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

327 
fst dword ptr [esp+18h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

328 
fistp qword ptr [esp+10h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

329 
fild qword ptr [esp+10h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

330 
mov edx,dword ptr [esp+18h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

331 
mov eax,dword ptr [esp+10h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

332 
test eax,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

333 
je integer_QnaN_or_zero 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

334 
arg_is_not_integer_QnaN: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

335 
fsubp st(1),st 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

336 
test edx,edx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

337 
jns positive 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

338 
fstp dword ptr [esp] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

339 
mov ecx,dword ptr [esp] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

340 
xor ecx,80000000h 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

341 
add ecx,7FFFFFFFh 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

342 
adc eax,0 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

343 
mov edx,dword ptr [esp+14h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

344 
adc edx,0 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

345 
jmp localexit 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

346 
positive: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

347 
fstp dword ptr [esp] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

348 
mov ecx,dword ptr [esp] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

349 
add ecx,7FFFFFFFh 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

350 
sbb eax,0 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

351 
mov edx,dword ptr [esp+14h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

352 
sbb edx,0 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

353 
jmp localexit 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

354 
integer_QnaN_or_zero: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

355 
mov edx,dword ptr [esp+14h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

356 
test edx,7FFFFFFFh 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

357 
jne arg_is_not_integer_QnaN 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

358 
fstp dword ptr [esp+18h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

359 
fstp dword ptr [esp+18h] 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

360 
localexit: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

361 
leave 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

362 
ret 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

363 
} 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

364 
/* *INDENTON* */ 
1345
7f32b9bede06
Fixes for Visual C++ 6.0
Sam Lantinga <slouken@libsdl.org>
parents:
1331
diff
changeset

365 
} 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

366 

c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

367 
void 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

368 
_ftol2_sse() 
1330
450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

369 
{ 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

370 
_ftol(); 
1330
450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

371 
} 
450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

372 

1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

373 
/* 64bit math operators for 32bit systems */ 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

374 
void 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

375 
__declspec(naked) 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

376 
_allmul() 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

377 
{ 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

378 
/* *INDENTOFF* */ 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

379 
__asm { 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

380 
push ebp 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

381 
mov ebp,esp 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

382 
push edi 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

383 
push esi 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

384 
push ebx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

385 
sub esp,0Ch 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

386 
mov eax,dword ptr [ebp+10h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

387 
mov edi,dword ptr [ebp+8] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

388 
mov ebx,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

389 
mov esi,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

390 
sar esi,1Fh 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

391 
mov eax,dword ptr [ebp+8] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

392 
mul ebx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

393 
imul edi,esi 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

394 
mov ecx,edx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

395 
mov dword ptr [ebp18h],eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

396 
mov edx,dword ptr [ebp+0Ch] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

397 
add ecx,edi 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

398 
imul ebx,edx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

399 
mov eax,dword ptr [ebp18h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

400 
lea ebx,[ebx+ecx] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

401 
mov dword ptr [ebp14h],ebx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

402 
mov edx,dword ptr [ebp14h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

403 
add esp,0Ch 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

404 
pop ebx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

405 
pop esi 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

406 
pop edi 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

407 
pop ebp 
7180
3733e68edbc3
Fixed bug 1846  _allmul implementation in SDL_stdlib.c doesn't clean up the stack
Sam Lantinga <slouken@libsdl.org>
parents:
7003
diff
changeset

408 
ret 10h 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

409 
} 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

410 
/* *INDENTON* */ 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

411 
} 
2735
204be4fc2726
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
1895
diff
changeset

412 

1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

413 
void 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

414 
__declspec(naked) 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

415 
_alldiv() 
1330
450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

416 
{ 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

417 
/* *INDENTOFF* */ 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

418 
__asm { 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

419 
push edi 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

420 
push esi 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

421 
push ebx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

422 
xor edi,edi 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

423 
mov eax,dword ptr [esp+14h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

424 
or eax,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

425 
jge L1 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

426 
inc edi 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

427 
mov edx,dword ptr [esp+10h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

428 
neg eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

429 
neg edx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

430 
sbb eax,0 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

431 
mov dword ptr [esp+14h],eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

432 
mov dword ptr [esp+10h],edx 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

433 
L1: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

434 
mov eax,dword ptr [esp+1Ch] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

435 
or eax,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

436 
jge L2 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

437 
inc edi 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

438 
mov edx,dword ptr [esp+18h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

439 
neg eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

440 
neg edx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

441 
sbb eax,0 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

442 
mov dword ptr [esp+1Ch],eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

443 
mov dword ptr [esp+18h],edx 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

444 
L2: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

445 
or eax,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

446 
jne L3 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

447 
mov ecx,dword ptr [esp+18h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

448 
mov eax,dword ptr [esp+14h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

449 
xor edx,edx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

450 
div ecx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

451 
mov ebx,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

452 
mov eax,dword ptr [esp+10h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

453 
div ecx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

454 
mov edx,ebx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

455 
jmp L4 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

456 
L3: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

457 
mov ebx,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

458 
mov ecx,dword ptr [esp+18h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

459 
mov edx,dword ptr [esp+14h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

460 
mov eax,dword ptr [esp+10h] 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

461 
L5: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

462 
shr ebx,1 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

463 
rcr ecx,1 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

464 
shr edx,1 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

465 
rcr eax,1 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

466 
or ebx,ebx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

467 
jne L5 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

468 
div ecx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

469 
mov esi,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

470 
mul dword ptr [esp+1Ch] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

471 
mov ecx,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

472 
mov eax,dword ptr [esp+18h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

473 
mul esi 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

474 
add edx,ecx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

475 
jb L6 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

476 
cmp edx,dword ptr [esp+14h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

477 
ja L6 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

478 
jb L7 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

479 
cmp eax,dword ptr [esp+10h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

480 
jbe L7 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

481 
L6: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

482 
dec esi 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

483 
L7: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

484 
xor edx,edx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

485 
mov eax,esi 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

486 
L4: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

487 
dec edi 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

488 
jne L8 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

489 
neg edx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

490 
neg eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

491 
sbb edx,0 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

492 
L8: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

493 
pop ebx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

494 
pop esi 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

495 
pop edi 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

496 
ret 10h 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

497 
} 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

498 
/* *INDENTON* */ 
1330
450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

499 
} 
2735
204be4fc2726
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
1895
diff
changeset

500 

1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

501 
void 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

502 
__declspec(naked) 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

503 
_aulldiv() 
1330
450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

504 
{ 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

505 
/* *INDENTOFF* */ 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

506 
__asm { 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

507 
push ebx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

508 
push esi 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

509 
mov eax,dword ptr [esp+18h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

510 
or eax,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

511 
jne L1 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

512 
mov ecx,dword ptr [esp+14h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

513 
mov eax,dword ptr [esp+10h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

514 
xor edx,edx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

515 
div ecx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

516 
mov ebx,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

517 
mov eax,dword ptr [esp+0Ch] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

518 
div ecx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

519 
mov edx,ebx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

520 
jmp L2 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

521 
L1: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

522 
mov ecx,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

523 
mov ebx,dword ptr [esp+14h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

524 
mov edx,dword ptr [esp+10h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

525 
mov eax,dword ptr [esp+0Ch] 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

526 
L3: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

527 
shr ecx,1 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

528 
rcr ebx,1 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

529 
shr edx,1 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

530 
rcr eax,1 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

531 
or ecx,ecx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

532 
jne L3 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

533 
div ebx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

534 
mov esi,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

535 
mul dword ptr [esp+18h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

536 
mov ecx,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

537 
mov eax,dword ptr [esp+14h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

538 
mul esi 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

539 
add edx,ecx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

540 
jb L4 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

541 
cmp edx,dword ptr [esp+10h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

542 
ja L4 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

543 
jb L5 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

544 
cmp eax,dword ptr [esp+0Ch] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

545 
jbe L5 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

546 
L4: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

547 
dec esi 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

548 
L5: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

549 
xor edx,edx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

550 
mov eax,esi 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

551 
L2: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

552 
pop esi 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

553 
pop ebx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

554 
ret 10h 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

555 
} 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

556 
/* *INDENTON* */ 
1330
450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

557 
} 
2735
204be4fc2726
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
1895
diff
changeset

558 

1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

559 
void 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

560 
__declspec(naked) 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

561 
_allrem() 
1330
450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

562 
{ 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

563 
/* *INDENTOFF* */ 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

564 
__asm { 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

565 
push ebx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

566 
push edi 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

567 
xor edi,edi 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

568 
mov eax,dword ptr [esp+10h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

569 
or eax,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

570 
jge L1 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

571 
inc edi 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

572 
mov edx,dword ptr [esp+0Ch] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

573 
neg eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

574 
neg edx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

575 
sbb eax,0 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

576 
mov dword ptr [esp+10h],eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

577 
mov dword ptr [esp+0Ch],edx 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

578 
L1: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

579 
mov eax,dword ptr [esp+18h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

580 
or eax,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

581 
jge L2 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

582 
mov edx,dword ptr [esp+14h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

583 
neg eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

584 
neg edx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

585 
sbb eax,0 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

586 
mov dword ptr [esp+18h],eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

587 
mov dword ptr [esp+14h],edx 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

588 
L2: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

589 
or eax,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

590 
jne L3 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

591 
mov ecx,dword ptr [esp+14h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

592 
mov eax,dword ptr [esp+10h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

593 
xor edx,edx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

594 
div ecx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

595 
mov eax,dword ptr [esp+0Ch] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

596 
div ecx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

597 
mov eax,edx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

598 
xor edx,edx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

599 
dec edi 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

600 
jns L4 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

601 
jmp L8 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

602 
L3: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

603 
mov ebx,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

604 
mov ecx,dword ptr [esp+14h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

605 
mov edx,dword ptr [esp+10h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

606 
mov eax,dword ptr [esp+0Ch] 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

607 
L5: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

608 
shr ebx,1 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

609 
rcr ecx,1 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

610 
shr edx,1 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

611 
rcr eax,1 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

612 
or ebx,ebx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

613 
jne L5 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

614 
div ecx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

615 
mov ecx,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

616 
mul dword ptr [esp+18h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

617 
xchg eax,ecx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

618 
mul dword ptr [esp+14h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

619 
add edx,ecx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

620 
jb L6 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

621 
cmp edx,dword ptr [esp+10h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

622 
ja L6 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

623 
jb L7 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

624 
cmp eax,dword ptr [esp+0Ch] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

625 
jbe L7 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

626 
L6: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

627 
sub eax,dword ptr [esp+14h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

628 
sbb edx,dword ptr [esp+18h] 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

629 
L7: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

630 
sub eax,dword ptr [esp+0Ch] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

631 
sbb edx,dword ptr [esp+10h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

632 
dec edi 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

633 
jns L8 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

634 
L4: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

635 
neg edx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

636 
neg eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

637 
sbb edx,0 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

638 
L8: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

639 
pop edi 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

640 
pop ebx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

641 
ret 10h 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

642 
} 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

643 
/* *INDENTON* */ 
1330
450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

644 
} 
2735
204be4fc2726
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
1895
diff
changeset

645 

1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

646 
void 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

647 
__declspec(naked) 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

648 
_aullrem() 
1330
450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

649 
{ 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

650 
/* *INDENTOFF* */ 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

651 
__asm { 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

652 
push ebx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

653 
mov eax,dword ptr [esp+14h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

654 
or eax,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

655 
jne L1 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

656 
mov ecx,dword ptr [esp+10h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

657 
mov eax,dword ptr [esp+0Ch] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

658 
xor edx,edx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

659 
div ecx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

660 
mov eax,dword ptr [esp+8] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

661 
div ecx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

662 
mov eax,edx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

663 
xor edx,edx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

664 
jmp L2 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

665 
L1: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

666 
mov ecx,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

667 
mov ebx,dword ptr [esp+10h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

668 
mov edx,dword ptr [esp+0Ch] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

669 
mov eax,dword ptr [esp+8] 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

670 
L3: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

671 
shr ecx,1 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

672 
rcr ebx,1 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

673 
shr edx,1 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

674 
rcr eax,1 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

675 
or ecx,ecx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

676 
jne L3 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

677 
div ebx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

678 
mov ecx,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

679 
mul dword ptr [esp+14h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

680 
xchg eax,ecx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

681 
mul dword ptr [esp+10h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

682 
add edx,ecx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

683 
jb L4 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

684 
cmp edx,dword ptr [esp+0Ch] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

685 
ja L4 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

686 
jb L5 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

687 
cmp eax,dword ptr [esp+8] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

688 
jbe L5 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

689 
L4: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

690 
sub eax,dword ptr [esp+10h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

691 
sbb edx,dword ptr [esp+14h] 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

692 
L5: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

693 
sub eax,dword ptr [esp+8] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

694 
sbb edx,dword ptr [esp+0Ch] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

695 
neg edx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

696 
neg eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

697 
sbb edx,0 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

698 
L2: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

699 
pop ebx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

700 
ret 10h 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

701 
} 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

702 
/* *INDENTON* */ 
1330
450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

703 
} 
2735
204be4fc2726
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
1895
diff
changeset

704 

1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

705 
void 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

706 
__declspec(naked) 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

707 
_alldvrm() 
1330
450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

708 
{ 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

709 
/* *INDENTOFF* */ 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

710 
__asm { 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

711 
push edi 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

712 
push esi 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

713 
push ebp 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

714 
xor edi,edi 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

715 
xor ebp,ebp 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

716 
mov eax,dword ptr [esp+14h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

717 
or eax,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

718 
jge L1 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

719 
inc edi 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

720 
inc ebp 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

721 
mov edx,dword ptr [esp+10h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

722 
neg eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

723 
neg edx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

724 
sbb eax,0 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

725 
mov dword ptr [esp+14h],eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

726 
mov dword ptr [esp+10h],edx 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

727 
L1: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

728 
mov eax,dword ptr [esp+1Ch] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

729 
or eax,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

730 
jge L2 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

731 
inc edi 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

732 
mov edx,dword ptr [esp+18h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

733 
neg eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

734 
neg edx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

735 
sbb eax,0 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

736 
mov dword ptr [esp+1Ch],eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

737 
mov dword ptr [esp+18h],edx 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

738 
L2: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

739 
or eax,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

740 
jne L3 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

741 
mov ecx,dword ptr [esp+18h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

742 
mov eax,dword ptr [esp+14h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

743 
xor edx,edx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

744 
div ecx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

745 
mov ebx,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

746 
mov eax,dword ptr [esp+10h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

747 
div ecx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

748 
mov esi,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

749 
mov eax,ebx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

750 
mul dword ptr [esp+18h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

751 
mov ecx,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

752 
mov eax,esi 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

753 
mul dword ptr [esp+18h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

754 
add edx,ecx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

755 
jmp L4 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

756 
L3: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

757 
mov ebx,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

758 
mov ecx,dword ptr [esp+18h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

759 
mov edx,dword ptr [esp+14h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

760 
mov eax,dword ptr [esp+10h] 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

761 
L5: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

762 
shr ebx,1 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

763 
rcr ecx,1 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

764 
shr edx,1 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

765 
rcr eax,1 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

766 
or ebx,ebx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

767 
jne L5 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

768 
div ecx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

769 
mov esi,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

770 
mul dword ptr [esp+1Ch] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

771 
mov ecx,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

772 
mov eax,dword ptr [esp+18h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

773 
mul esi 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

774 
add edx,ecx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

775 
jb L6 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

776 
cmp edx,dword ptr [esp+14h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

777 
ja L6 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

778 
jb L7 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

779 
cmp eax,dword ptr [esp+10h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

780 
jbe L7 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

781 
L6: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

782 
dec esi 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

783 
sub eax,dword ptr [esp+18h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

784 
sbb edx,dword ptr [esp+1Ch] 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

785 
L7: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

786 
xor ebx,ebx 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

787 
L4: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

788 
sub eax,dword ptr [esp+10h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

789 
sbb edx,dword ptr [esp+14h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

790 
dec ebp 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

791 
jns L9 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

792 
neg edx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

793 
neg eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

794 
sbb edx,0 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

795 
L9: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

796 
mov ecx,edx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

797 
mov edx,ebx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

798 
mov ebx,ecx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

799 
mov ecx,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

800 
mov eax,esi 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

801 
dec edi 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

802 
jne L8 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

803 
neg edx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

804 
neg eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

805 
sbb edx,0 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

806 
L8: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

807 
pop ebp 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

808 
pop esi 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

809 
pop edi 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

810 
ret 10h 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

811 
} 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

812 
/* *INDENTON* */ 
1330
450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

813 
} 
2735
204be4fc2726
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
1895
diff
changeset

814 

1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

815 
void 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

816 
__declspec(naked) 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

817 
_aulldvrm() 
1330
450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

818 
{ 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

819 
/* *INDENTOFF* */ 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

820 
__asm { 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

821 
push esi 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

822 
mov eax,dword ptr [esp+14h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

823 
or eax,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

824 
jne L1 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

825 
mov ecx,dword ptr [esp+10h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

826 
mov eax,dword ptr [esp+0Ch] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

827 
xor edx,edx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

828 
div ecx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

829 
mov ebx,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

830 
mov eax,dword ptr [esp+8] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

831 
div ecx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

832 
mov esi,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

833 
mov eax,ebx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

834 
mul dword ptr [esp+10h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

835 
mov ecx,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

836 
mov eax,esi 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

837 
mul dword ptr [esp+10h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

838 
add edx,ecx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

839 
jmp L2 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

840 
L1: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

841 
mov ecx,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

842 
mov ebx,dword ptr [esp+10h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

843 
mov edx,dword ptr [esp+0Ch] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

844 
mov eax,dword ptr [esp+8] 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

845 
L3: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

846 
shr ecx,1 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

847 
rcr ebx,1 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

848 
shr edx,1 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

849 
rcr eax,1 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

850 
or ecx,ecx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

851 
jne L3 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

852 
div ebx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

853 
mov esi,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

854 
mul dword ptr [esp+14h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

855 
mov ecx,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

856 
mov eax,dword ptr [esp+10h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

857 
mul esi 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

858 
add edx,ecx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

859 
jb L4 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

860 
cmp edx,dword ptr [esp+0Ch] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

861 
ja L4 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

862 
jb L5 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

863 
cmp eax,dword ptr [esp+8] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

864 
jbe L5 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

865 
L4: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

866 
dec esi 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

867 
sub eax,dword ptr [esp+10h] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

868 
sbb edx,dword ptr [esp+14h] 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

869 
L5: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

870 
xor ebx,ebx 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

871 
L2: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

872 
sub eax,dword ptr [esp+8] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

873 
sbb edx,dword ptr [esp+0Ch] 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

874 
neg edx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

875 
neg eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

876 
sbb edx,0 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

877 
mov ecx,edx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

878 
mov edx,ebx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

879 
mov ebx,ecx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

880 
mov ecx,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

881 
mov eax,esi 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

882 
pop esi 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

883 
ret 10h 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

884 
} 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

885 
/* *INDENTON* */ 
1330
450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

886 
} 
2735
204be4fc2726
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
1895
diff
changeset

887 

1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

888 
void 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

889 
__declspec(naked) 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

890 
_allshl() 
1330
450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

891 
{ 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

892 
/* *INDENTOFF* */ 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

893 
__asm { 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

894 
cmp cl,40h 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

895 
jae RETZERO 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

896 
cmp cl,20h 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

897 
jae MORE32 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

898 
shld edx,eax,cl 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

899 
shl eax,cl 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

900 
ret 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

901 
MORE32: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

902 
mov edx,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

903 
xor eax,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

904 
and cl,1Fh 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

905 
shl edx,cl 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

906 
ret 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

907 
RETZERO: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

908 
xor eax,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

909 
xor edx,edx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

910 
ret 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

911 
} 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

912 
/* *INDENTON* */ 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

913 
} 
2735
204be4fc2726
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
1895
diff
changeset

914 

1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

915 
void 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

916 
__declspec(naked) 
2760
02aa80d7905f
Updated Visual C++ build
Sam Lantinga <slouken@libsdl.org>
parents:
2735
diff
changeset

917 
_allshr() 
02aa80d7905f
Updated Visual C++ build
Sam Lantinga <slouken@libsdl.org>
parents:
2735
diff
changeset

918 
{ 
02aa80d7905f
Updated Visual C++ build
Sam Lantinga <slouken@libsdl.org>
parents:
2735
diff
changeset

919 
/* *INDENTOFF* */ 
02aa80d7905f
Updated Visual C++ build
Sam Lantinga <slouken@libsdl.org>
parents:
2735
diff
changeset

920 
__asm { 
02aa80d7905f
Updated Visual C++ build
Sam Lantinga <slouken@libsdl.org>
parents:
2735
diff
changeset

921 
cmp cl,40h 
02aa80d7905f
Updated Visual C++ build
Sam Lantinga <slouken@libsdl.org>
parents:
2735
diff
changeset

922 
jae RETZERO 
02aa80d7905f
Updated Visual C++ build
Sam Lantinga <slouken@libsdl.org>
parents:
2735
diff
changeset

923 
cmp cl,20h 
02aa80d7905f
Updated Visual C++ build
Sam Lantinga <slouken@libsdl.org>
parents:
2735
diff
changeset

924 
jae MORE32 
02aa80d7905f
Updated Visual C++ build
Sam Lantinga <slouken@libsdl.org>
parents:
2735
diff
changeset

925 
shrd eax,edx,cl 
02aa80d7905f
Updated Visual C++ build
Sam Lantinga <slouken@libsdl.org>
parents:
2735
diff
changeset

926 
sar edx,cl 
02aa80d7905f
Updated Visual C++ build
Sam Lantinga <slouken@libsdl.org>
parents:
2735
diff
changeset

927 
ret 
02aa80d7905f
Updated Visual C++ build
Sam Lantinga <slouken@libsdl.org>
parents:
2735
diff
changeset

928 
MORE32: 
02aa80d7905f
Updated Visual C++ build
Sam Lantinga <slouken@libsdl.org>
parents:
2735
diff
changeset

929 
mov eax,edx 
02aa80d7905f
Updated Visual C++ build
Sam Lantinga <slouken@libsdl.org>
parents:
2735
diff
changeset

930 
xor edx,edx 
02aa80d7905f
Updated Visual C++ build
Sam Lantinga <slouken@libsdl.org>
parents:
2735
diff
changeset

931 
and cl,1Fh 
02aa80d7905f
Updated Visual C++ build
Sam Lantinga <slouken@libsdl.org>
parents:
2735
diff
changeset

932 
sar eax,cl 
02aa80d7905f
Updated Visual C++ build
Sam Lantinga <slouken@libsdl.org>
parents:
2735
diff
changeset

933 
ret 
02aa80d7905f
Updated Visual C++ build
Sam Lantinga <slouken@libsdl.org>
parents:
2735
diff
changeset

934 
RETZERO: 
02aa80d7905f
Updated Visual C++ build
Sam Lantinga <slouken@libsdl.org>
parents:
2735
diff
changeset

935 
xor eax,eax 
02aa80d7905f
Updated Visual C++ build
Sam Lantinga <slouken@libsdl.org>
parents:
2735
diff
changeset

936 
xor edx,edx 
02aa80d7905f
Updated Visual C++ build
Sam Lantinga <slouken@libsdl.org>
parents:
2735
diff
changeset

937 
ret 
02aa80d7905f
Updated Visual C++ build
Sam Lantinga <slouken@libsdl.org>
parents:
2735
diff
changeset

938 
} 
02aa80d7905f
Updated Visual C++ build
Sam Lantinga <slouken@libsdl.org>
parents:
2735
diff
changeset

939 
/* *INDENTON* */ 
02aa80d7905f
Updated Visual C++ build
Sam Lantinga <slouken@libsdl.org>
parents:
2735
diff
changeset

940 
} 
02aa80d7905f
Updated Visual C++ build
Sam Lantinga <slouken@libsdl.org>
parents:
2735
diff
changeset

941 

02aa80d7905f
Updated Visual C++ build
Sam Lantinga <slouken@libsdl.org>
parents:
2735
diff
changeset

942 
void 
02aa80d7905f
Updated Visual C++ build
Sam Lantinga <slouken@libsdl.org>
parents:
2735
diff
changeset

943 
__declspec(naked) 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

944 
_aullshr() 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

945 
{ 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

946 
/* *INDENTOFF* */ 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

947 
__asm { 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

948 
cmp cl,40h 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

949 
jae RETZERO 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

950 
cmp cl,20h 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

951 
jae MORE32 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

952 
shrd eax,edx,cl 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

953 
shr edx,cl 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

954 
ret 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

955 
MORE32: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

956 
mov eax,edx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

957 
xor edx,edx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

958 
and cl,1Fh 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

959 
shr eax,cl 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

960 
ret 
1346
1b5fbaf1d2c6
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org>
parents:
1345
diff
changeset

961 
RETZERO: 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

962 
xor eax,eax 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

963 
xor edx,edx 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

964 
ret 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

965 
} 
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

966 
/* *INDENTON* */ 
1330
450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

967 
} 
450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

968 

5455
5fbf5fc81aa8
Fixed linking x64 with Visual Studio 2010.
Sam Lantinga <slouken@libsdl.org>
parents:
5262
diff
changeset

969 
#endif /* _M_IX86 */ 
3255
f8a4214ce90a
Fixed compiling on 64bit Windows
Sam Lantinga <slouken@libsdl.org>
parents:
3253
diff
changeset

970 

1330
450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

971 
#endif /* MSC_VER */ 
450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

972 

1331
1cbaeee565b1
A few fixes to get this building on Linux again
Sam Lantinga <slouken@libsdl.org>
parents:
1330
diff
changeset

973 
#endif /* !HAVE_LIBC */ 
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

974 

c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1433
diff
changeset

975 
/* vi: set ts=4 sw=4 expandtab: */ 