comparison src/stdlib/SDL_stdlib.c @ 1668:4da1ee79c9af SDL-1.3

more tweaking indent options
author Sam Lantinga <slouken@libsdl.org>
date Mon, 29 May 2006 04:04:35 +0000
parents 11775724e3fe
children
comparison
equal deleted inserted replaced
1667:1fddae038bc8 1668:4da1ee79c9af
33 #ifndef __FLTUSED__ 33 #ifndef __FLTUSED__
34 #define __FLTUSED__ 34 #define __FLTUSED__
35 #ifdef __cplusplus 35 #ifdef __cplusplus
36 extern "C" 36 extern "C"
37 #endif 37 #endif
38 __declspec (selectany) 38 __declspec(selectany)
39 int _fltused = 1; 39 int _fltused = 1;
40 #endif 40 #endif
41 41
42 /* Float to long */ 42 /* Float to long */
43 void __declspec (naked) _ftol () 43 void __declspec(naked) _ftol()
44 { 44 {
45 /* *INDENT-OFF* */ 45 /* *INDENT-OFF* */
46 __asm { 46 __asm {
47 push ebp 47 push ebp
48 mov ebp,esp 48 mov ebp,esp
88 } 88 }
89 /* *INDENT-ON* */ 89 /* *INDENT-ON* */
90 } 90 }
91 91
92 void 92 void
93 __declspec (naked) 93 __declspec(naked)
94 _ftol2_sse () 94 _ftol2_sse()
95 { 95 {
96 _ftol (); 96 _ftol();
97 } 97 }
98 98
99 /* 64-bit math operators for 32-bit systems */ 99 /* 64-bit math operators for 32-bit systems */
100 void 100 void
101 __declspec (naked) 101 __declspec(naked)
102 _allmul () 102 _allmul()
103 { 103 {
104 /* *INDENT-OFF* */ 104 /* *INDENT-OFF* */
105 __asm { 105 __asm {
106 push ebp 106 push ebp
107 mov ebp,esp 107 mov ebp,esp
134 ret 134 ret
135 } 135 }
136 /* *INDENT-ON* */ 136 /* *INDENT-ON* */
137 } 137 }
138 void 138 void
139 __declspec (naked) 139 __declspec(naked)
140 _alldiv () 140 _alldiv()
141 { 141 {
142 /* *INDENT-OFF* */ 142 /* *INDENT-OFF* */
143 __asm { 143 __asm {
144 push edi 144 push edi
145 push esi 145 push esi
221 ret 10h 221 ret 10h
222 } 222 }
223 /* *INDENT-ON* */ 223 /* *INDENT-ON* */
224 } 224 }
225 void 225 void
226 __declspec (naked) 226 __declspec(naked)
227 _aulldiv () 227 _aulldiv()
228 { 228 {
229 /* *INDENT-OFF* */ 229 /* *INDENT-OFF* */
230 __asm { 230 __asm {
231 push ebx 231 push ebx
232 push esi 232 push esi
278 ret 10h 278 ret 10h
279 } 279 }
280 /* *INDENT-ON* */ 280 /* *INDENT-ON* */
281 } 281 }
282 void 282 void
283 __declspec (naked) 283 __declspec(naked)
284 _allrem () 284 _allrem()
285 { 285 {
286 /* *INDENT-OFF* */ 286 /* *INDENT-OFF* */
287 __asm { 287 __asm {
288 push ebx 288 push ebx
289 push edi 289 push edi
364 ret 10h 364 ret 10h
365 } 365 }
366 /* *INDENT-ON* */ 366 /* *INDENT-ON* */
367 } 367 }
368 void 368 void
369 __declspec (naked) 369 __declspec(naked)
370 _aullrem () 370 _aullrem()
371 { 371 {
372 /* *INDENT-OFF* */ 372 /* *INDENT-OFF* */
373 __asm { 373 __asm {
374 push ebx 374 push ebx
375 mov eax,dword ptr [esp+14h] 375 mov eax,dword ptr [esp+14h]
422 ret 10h 422 ret 10h
423 } 423 }
424 /* *INDENT-ON* */ 424 /* *INDENT-ON* */
425 } 425 }
426 void 426 void
427 __declspec (naked) 427 __declspec(naked)
428 _alldvrm () 428 _alldvrm()
429 { 429 {
430 /* *INDENT-OFF* */ 430 /* *INDENT-OFF* */
431 __asm { 431 __asm {
432 push edi 432 push edi
433 push esi 433 push esi
531 ret 10h 531 ret 10h
532 } 532 }
533 /* *INDENT-ON* */ 533 /* *INDENT-ON* */
534 } 534 }
535 void 535 void
536 __declspec (naked) 536 __declspec(naked)
537 _aulldvrm () 537 _aulldvrm()
538 { 538 {
539 /* *INDENT-OFF* */ 539 /* *INDENT-OFF* */
540 __asm { 540 __asm {
541 push esi 541 push esi
542 mov eax,dword ptr [esp+14h] 542 mov eax,dword ptr [esp+14h]
603 ret 10h 603 ret 10h
604 } 604 }
605 /* *INDENT-ON* */ 605 /* *INDENT-ON* */
606 } 606 }
607 void 607 void
608 __declspec (naked) 608 __declspec(naked)
609 _allshl () 609 _allshl()
610 { 610 {
611 /* *INDENT-OFF* */ 611 /* *INDENT-OFF* */
612 __asm { 612 __asm {
613 cmp cl,40h 613 cmp cl,40h
614 jae RETZERO 614 jae RETZERO
629 ret 629 ret
630 } 630 }
631 /* *INDENT-ON* */ 631 /* *INDENT-ON* */
632 } 632 }
633 void 633 void
634 __declspec (naked) 634 __declspec(naked)
635 _aullshr () 635 _aullshr()
636 { 636 {
637 /* *INDENT-OFF* */ 637 /* *INDENT-OFF* */
638 __asm { 638 __asm {
639 cmp cl,40h 639 cmp cl,40h
640 jae RETZERO 640 jae RETZERO