Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Latest commit

 

History

History
702 lines (675 loc) · 17.1 KB

SDL_stdlib.c

File metadata and controls

702 lines (675 loc) · 17.1 KB
 
1
2
/*
SDL - Simple DirectMedia Layer
Jan 24, 2010
Jan 24, 2010
3
Copyright (C) 1997-2010 Sam Lantinga
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Sam Lantinga
slouken@libsdl.org
*/
Feb 21, 2006
Feb 21, 2006
22
#include "SDL_config.h"
23
24
25
/* This file contains portable stdlib functions for SDL */
Feb 9, 2006
Feb 9, 2006
26
#include "SDL_stdinc.h"
27
28
29
30
#ifndef HAVE_LIBC
/* These are some C runtime intrinsics that need to be defined */
Sep 6, 2009
Sep 6, 2009
31
#if defined(_MSC_VER)
Feb 25, 2006
Feb 25, 2006
33
34
#ifndef __FLTUSED__
#define __FLTUSED__
Sep 6, 2009
Sep 6, 2009
35
__declspec(selectany) int _fltused = 1;
Feb 25, 2006
Feb 25, 2006
36
37
#endif
Sep 6, 2009
Sep 6, 2009
38
39
40
41
#ifdef _WIN64
#else
Feb 8, 2006
Feb 8, 2006
42
/* Float to long */
Sep 5, 2009
Sep 5, 2009
43
44
45
void
__declspec(naked)
_ftol()
Feb 7, 2006
Feb 7, 2006
46
{
Jul 10, 2006
Jul 10, 2006
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/* *INDENT-OFF* */
__asm {
push ebp
mov ebp,esp
sub esp,20h
and esp,0FFFFFFF0h
fld st(0)
fst dword ptr [esp+18h]
fistp qword ptr [esp+10h]
fild qword ptr [esp+10h]
mov edx,dword ptr [esp+18h]
mov eax,dword ptr [esp+10h]
test eax,eax
je integer_QnaN_or_zero
Feb 8, 2006
Feb 8, 2006
61
arg_is_not_integer_QnaN:
Jul 10, 2006
Jul 10, 2006
62
63
64
65
66
67
68
69
70
71
72
fsubp st(1),st
test edx,edx
jns positive
fstp dword ptr [esp]
mov ecx,dword ptr [esp]
xor ecx,80000000h
add ecx,7FFFFFFFh
adc eax,0
mov edx,dword ptr [esp+14h]
adc edx,0
jmp localexit
Feb 8, 2006
Feb 8, 2006
73
positive:
Jul 10, 2006
Jul 10, 2006
74
75
76
77
78
79
80
fstp dword ptr [esp]
mov ecx,dword ptr [esp]
add ecx,7FFFFFFFh
sbb eax,0
mov edx,dword ptr [esp+14h]
sbb edx,0
jmp localexit
Feb 8, 2006
Feb 8, 2006
81
integer_QnaN_or_zero:
Jul 10, 2006
Jul 10, 2006
82
83
84
85
86
mov edx,dword ptr [esp+14h]
test edx,7FFFFFFFh
jne arg_is_not_integer_QnaN
fstp dword ptr [esp+18h]
fstp dword ptr [esp+18h]
Feb 8, 2006
Feb 8, 2006
87
localexit:
Jul 10, 2006
Jul 10, 2006
88
89
90
91
leave
ret
}
/* *INDENT-ON* */
Feb 7, 2006
Feb 7, 2006
92
}
Jul 10, 2006
Jul 10, 2006
93
94
95
void
_ftol2_sse()
Jul 10, 2006
Jul 10, 2006
97
_ftol();
Feb 8, 2006
Feb 8, 2006
100
/* 64-bit math operators for 32-bit systems */
Jul 10, 2006
Jul 10, 2006
101
102
103
void
__declspec(naked)
_allmul()
Jul 10, 2006
Jul 10, 2006
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
/* *INDENT-OFF* */
__asm {
push ebp
mov ebp,esp
push edi
push esi
push ebx
sub esp,0Ch
mov eax,dword ptr [ebp+10h]
mov edi,dword ptr [ebp+8]
mov ebx,eax
mov esi,eax
sar esi,1Fh
mov eax,dword ptr [ebp+8]
mul ebx
imul edi,esi
mov ecx,edx
mov dword ptr [ebp-18h],eax
mov edx,dword ptr [ebp+0Ch]
add ecx,edi
imul ebx,edx
mov eax,dword ptr [ebp-18h]
lea ebx,[ebx+ecx]
mov dword ptr [ebp-14h],ebx
mov edx,dword ptr [ebp-14h]
add esp,0Ch
pop ebx
pop esi
pop edi
pop ebp
ret
}
/* *INDENT-ON* */
Aug 27, 2008
Aug 27, 2008
139
Jul 10, 2006
Jul 10, 2006
140
141
142
void
__declspec(naked)
_alldiv()
Jul 10, 2006
Jul 10, 2006
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
/* *INDENT-OFF* */
__asm {
push edi
push esi
push ebx
xor edi,edi
mov eax,dword ptr [esp+14h]
or eax,eax
jge L1
inc edi
mov edx,dword ptr [esp+10h]
neg eax
neg edx
sbb eax,0
mov dword ptr [esp+14h],eax
mov dword ptr [esp+10h],edx
Feb 8, 2006
Feb 8, 2006
160
L1:
Jul 10, 2006
Jul 10, 2006
161
162
163
164
165
166
167
168
169
170
mov eax,dword ptr [esp+1Ch]
or eax,eax
jge L2
inc edi
mov edx,dword ptr [esp+18h]
neg eax
neg edx
sbb eax,0
mov dword ptr [esp+1Ch],eax
mov dword ptr [esp+18h],edx
Feb 8, 2006
Feb 8, 2006
171
L2:
Jul 10, 2006
Jul 10, 2006
172
173
174
175
176
177
178
179
180
181
182
or eax,eax
jne L3
mov ecx,dword ptr [esp+18h]
mov eax,dword ptr [esp+14h]
xor edx,edx
div ecx
mov ebx,eax
mov eax,dword ptr [esp+10h]
div ecx
mov edx,ebx
jmp L4
Feb 8, 2006
Feb 8, 2006
183
L3:
Jul 10, 2006
Jul 10, 2006
184
185
186
187
mov ebx,eax
mov ecx,dword ptr [esp+18h]
mov edx,dword ptr [esp+14h]
mov eax,dword ptr [esp+10h]
Feb 8, 2006
Feb 8, 2006
188
L5:
Jul 10, 2006
Jul 10, 2006
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
shr ebx,1
rcr ecx,1
shr edx,1
rcr eax,1
or ebx,ebx
jne L5
div ecx
mov esi,eax
mul dword ptr [esp+1Ch]
mov ecx,eax
mov eax,dword ptr [esp+18h]
mul esi
add edx,ecx
jb L6
cmp edx,dword ptr [esp+14h]
ja L6
jb L7
cmp eax,dword ptr [esp+10h]
jbe L7
Feb 8, 2006
Feb 8, 2006
208
L6:
Jul 10, 2006
Jul 10, 2006
209
dec esi
Feb 8, 2006
Feb 8, 2006
210
L7:
Jul 10, 2006
Jul 10, 2006
211
212
xor edx,edx
mov eax,esi
Feb 8, 2006
Feb 8, 2006
213
L4:
Jul 10, 2006
Jul 10, 2006
214
215
216
217
218
dec edi
jne L8
neg edx
neg eax
sbb edx,0
Feb 8, 2006
Feb 8, 2006
219
L8:
Jul 10, 2006
Jul 10, 2006
220
221
222
223
224
225
pop ebx
pop esi
pop edi
ret 10h
}
/* *INDENT-ON* */
Aug 27, 2008
Aug 27, 2008
227
Jul 10, 2006
Jul 10, 2006
228
229
230
void
__declspec(naked)
_aulldiv()
Jul 10, 2006
Jul 10, 2006
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
/* *INDENT-OFF* */
__asm {
push ebx
push esi
mov eax,dword ptr [esp+18h]
or eax,eax
jne L1
mov ecx,dword ptr [esp+14h]
mov eax,dword ptr [esp+10h]
xor edx,edx
div ecx
mov ebx,eax
mov eax,dword ptr [esp+0Ch]
div ecx
mov edx,ebx
jmp L2
Feb 8, 2006
Feb 8, 2006
248
L1:
Jul 10, 2006
Jul 10, 2006
249
250
251
252
mov ecx,eax
mov ebx,dword ptr [esp+14h]
mov edx,dword ptr [esp+10h]
mov eax,dword ptr [esp+0Ch]
Feb 8, 2006
Feb 8, 2006
253
L3:
Jul 10, 2006
Jul 10, 2006
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
shr ecx,1
rcr ebx,1
shr edx,1
rcr eax,1
or ecx,ecx
jne L3
div ebx
mov esi,eax
mul dword ptr [esp+18h]
mov ecx,eax
mov eax,dword ptr [esp+14h]
mul esi
add edx,ecx
jb L4
cmp edx,dword ptr [esp+10h]
ja L4
jb L5
cmp eax,dword ptr [esp+0Ch]
jbe L5
Feb 8, 2006
Feb 8, 2006
273
L4:
Jul 10, 2006
Jul 10, 2006
274
dec esi
Feb 8, 2006
Feb 8, 2006
275
L5:
Jul 10, 2006
Jul 10, 2006
276
277
xor edx,edx
mov eax,esi
Feb 8, 2006
Feb 8, 2006
278
L2:
Jul 10, 2006
Jul 10, 2006
279
280
281
282
283
pop esi
pop ebx
ret 10h
}
/* *INDENT-ON* */
Aug 27, 2008
Aug 27, 2008
285
Jul 10, 2006
Jul 10, 2006
286
287
288
void
__declspec(naked)
_allrem()
Jul 10, 2006
Jul 10, 2006
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
/* *INDENT-OFF* */
__asm {
push ebx
push edi
xor edi,edi
mov eax,dword ptr [esp+10h]
or eax,eax
jge L1
inc edi
mov edx,dword ptr [esp+0Ch]
neg eax
neg edx
sbb eax,0
mov dword ptr [esp+10h],eax
mov dword ptr [esp+0Ch],edx
Feb 8, 2006
Feb 8, 2006
305
L1:
Jul 10, 2006
Jul 10, 2006
306
307
308
309
310
311
312
313
314
mov eax,dword ptr [esp+18h]
or eax,eax
jge L2
mov edx,dword ptr [esp+14h]
neg eax
neg edx
sbb eax,0
mov dword ptr [esp+18h],eax
mov dword ptr [esp+14h],edx
Feb 8, 2006
Feb 8, 2006
315
L2:
Jul 10, 2006
Jul 10, 2006
316
317
318
319
320
321
322
323
324
325
326
327
328
or eax,eax
jne L3
mov ecx,dword ptr [esp+14h]
mov eax,dword ptr [esp+10h]
xor edx,edx
div ecx
mov eax,dword ptr [esp+0Ch]
div ecx
mov eax,edx
xor edx,edx
dec edi
jns L4
jmp L8
Feb 8, 2006
Feb 8, 2006
329
L3:
Jul 10, 2006
Jul 10, 2006
330
331
332
333
mov ebx,eax
mov ecx,dword ptr [esp+14h]
mov edx,dword ptr [esp+10h]
mov eax,dword ptr [esp+0Ch]
Feb 8, 2006
Feb 8, 2006
334
L5:
Jul 10, 2006
Jul 10, 2006
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
shr ebx,1
rcr ecx,1
shr edx,1
rcr eax,1
or ebx,ebx
jne L5
div ecx
mov ecx,eax
mul dword ptr [esp+18h]
xchg eax,ecx
mul dword ptr [esp+14h]
add edx,ecx
jb L6
cmp edx,dword ptr [esp+10h]
ja L6
jb L7
cmp eax,dword ptr [esp+0Ch]
jbe L7
Feb 8, 2006
Feb 8, 2006
353
L6:
Jul 10, 2006
Jul 10, 2006
354
355
sub eax,dword ptr [esp+14h]
sbb edx,dword ptr [esp+18h]
Feb 8, 2006
Feb 8, 2006
356
L7:
Jul 10, 2006
Jul 10, 2006
357
358
359
360
sub eax,dword ptr [esp+0Ch]
sbb edx,dword ptr [esp+10h]
dec edi
jns L8
Feb 8, 2006
Feb 8, 2006
361
L4:
Jul 10, 2006
Jul 10, 2006
362
363
364
neg edx
neg eax
sbb edx,0
Feb 8, 2006
Feb 8, 2006
365
L8:
Jul 10, 2006
Jul 10, 2006
366
367
368
369
370
pop edi
pop ebx
ret 10h
}
/* *INDENT-ON* */
Aug 27, 2008
Aug 27, 2008
372
Jul 10, 2006
Jul 10, 2006
373
374
375
void
__declspec(naked)
_aullrem()
Jul 10, 2006
Jul 10, 2006
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
/* *INDENT-OFF* */
__asm {
push ebx
mov eax,dword ptr [esp+14h]
or eax,eax
jne L1
mov ecx,dword ptr [esp+10h]
mov eax,dword ptr [esp+0Ch]
xor edx,edx
div ecx
mov eax,dword ptr [esp+8]
div ecx
mov eax,edx
xor edx,edx
jmp L2
Feb 8, 2006
Feb 8, 2006
392
L1:
Jul 10, 2006
Jul 10, 2006
393
394
395
396
mov ecx,eax
mov ebx,dword ptr [esp+10h]
mov edx,dword ptr [esp+0Ch]
mov eax,dword ptr [esp+8]
Feb 8, 2006
Feb 8, 2006
397
L3:
Jul 10, 2006
Jul 10, 2006
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
shr ecx,1
rcr ebx,1
shr edx,1
rcr eax,1
or ecx,ecx
jne L3
div ebx
mov ecx,eax
mul dword ptr [esp+14h]
xchg eax,ecx
mul dword ptr [esp+10h]
add edx,ecx
jb L4
cmp edx,dword ptr [esp+0Ch]
ja L4
jb L5
cmp eax,dword ptr [esp+8]
jbe L5
Feb 8, 2006
Feb 8, 2006
416
L4:
Jul 10, 2006
Jul 10, 2006
417
418
sub eax,dword ptr [esp+10h]
sbb edx,dword ptr [esp+14h]
Feb 8, 2006
Feb 8, 2006
419
L5:
Jul 10, 2006
Jul 10, 2006
420
421
422
423
424
sub eax,dword ptr [esp+8]
sbb edx,dword ptr [esp+0Ch]
neg edx
neg eax
sbb edx,0
Feb 8, 2006
Feb 8, 2006
425
L2:
Jul 10, 2006
Jul 10, 2006
426
427
428
429
pop ebx
ret 10h
}
/* *INDENT-ON* */
Aug 27, 2008
Aug 27, 2008
431
Jul 10, 2006
Jul 10, 2006
432
433
434
void
__declspec(naked)
_alldvrm()
Jul 10, 2006
Jul 10, 2006
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
/* *INDENT-OFF* */
__asm {
push edi
push esi
push ebp
xor edi,edi
xor ebp,ebp
mov eax,dword ptr [esp+14h]
or eax,eax
jge L1
inc edi
inc ebp
mov edx,dword ptr [esp+10h]
neg eax
neg edx
sbb eax,0
mov dword ptr [esp+14h],eax
mov dword ptr [esp+10h],edx
Feb 8, 2006
Feb 8, 2006
454
L1:
Jul 10, 2006
Jul 10, 2006
455
456
457
458
459
460
461
462
463
464
mov eax,dword ptr [esp+1Ch]
or eax,eax
jge L2
inc edi
mov edx,dword ptr [esp+18h]
neg eax
neg edx
sbb eax,0
mov dword ptr [esp+1Ch],eax
mov dword ptr [esp+18h],edx
Feb 8, 2006
Feb 8, 2006
465
L2:
Jul 10, 2006
Jul 10, 2006
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
or eax,eax
jne L3
mov ecx,dword ptr [esp+18h]
mov eax,dword ptr [esp+14h]
xor edx,edx
div ecx
mov ebx,eax
mov eax,dword ptr [esp+10h]
div ecx
mov esi,eax
mov eax,ebx
mul dword ptr [esp+18h]
mov ecx,eax
mov eax,esi
mul dword ptr [esp+18h]
add edx,ecx
jmp L4
Feb 8, 2006
Feb 8, 2006
483
L3:
Jul 10, 2006
Jul 10, 2006
484
485
486
487
mov ebx,eax
mov ecx,dword ptr [esp+18h]
mov edx,dword ptr [esp+14h]
mov eax,dword ptr [esp+10h]
Feb 8, 2006
Feb 8, 2006
488
L5:
Jul 10, 2006
Jul 10, 2006
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
shr ebx,1
rcr ecx,1
shr edx,1
rcr eax,1
or ebx,ebx
jne L5
div ecx
mov esi,eax
mul dword ptr [esp+1Ch]
mov ecx,eax
mov eax,dword ptr [esp+18h]
mul esi
add edx,ecx
jb L6
cmp edx,dword ptr [esp+14h]
ja L6
jb L7
cmp eax,dword ptr [esp+10h]
jbe L7
Feb 8, 2006
Feb 8, 2006
508
L6:
Jul 10, 2006
Jul 10, 2006
509
510
511
dec esi
sub eax,dword ptr [esp+18h]
sbb edx,dword ptr [esp+1Ch]
Feb 8, 2006
Feb 8, 2006
512
L7:
Jul 10, 2006
Jul 10, 2006
513
xor ebx,ebx
Feb 8, 2006
Feb 8, 2006
514
L4:
Jul 10, 2006
Jul 10, 2006
515
516
517
518
519
520
521
sub eax,dword ptr [esp+10h]
sbb edx,dword ptr [esp+14h]
dec ebp
jns L9
neg edx
neg eax
sbb edx,0
Feb 8, 2006
Feb 8, 2006
522
L9:
Jul 10, 2006
Jul 10, 2006
523
524
525
526
527
528
529
530
531
532
mov ecx,edx
mov edx,ebx
mov ebx,ecx
mov ecx,eax
mov eax,esi
dec edi
jne L8
neg edx
neg eax
sbb edx,0
Feb 8, 2006
Feb 8, 2006
533
L8:
Jul 10, 2006
Jul 10, 2006
534
535
536
537
538
539
pop ebp
pop esi
pop edi
ret 10h
}
/* *INDENT-ON* */
Aug 27, 2008
Aug 27, 2008
541
Jul 10, 2006
Jul 10, 2006
542
543
544
void
__declspec(naked)
_aulldvrm()
Jul 10, 2006
Jul 10, 2006
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
/* *INDENT-OFF* */
__asm {
push esi
mov eax,dword ptr [esp+14h]
or eax,eax
jne L1
mov ecx,dword ptr [esp+10h]
mov eax,dword ptr [esp+0Ch]
xor edx,edx
div ecx
mov ebx,eax
mov eax,dword ptr [esp+8]
div ecx
mov esi,eax
mov eax,ebx
mul dword ptr [esp+10h]
mov ecx,eax
mov eax,esi
mul dword ptr [esp+10h]
add edx,ecx
jmp L2
Feb 8, 2006
Feb 8, 2006
567
L1:
Jul 10, 2006
Jul 10, 2006
568
569
570
571
mov ecx,eax
mov ebx,dword ptr [esp+10h]
mov edx,dword ptr [esp+0Ch]
mov eax,dword ptr [esp+8]
Feb 8, 2006
Feb 8, 2006
572
L3:
Jul 10, 2006
Jul 10, 2006
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
shr ecx,1
rcr ebx,1
shr edx,1
rcr eax,1
or ecx,ecx
jne L3
div ebx
mov esi,eax
mul dword ptr [esp+14h]
mov ecx,eax
mov eax,dword ptr [esp+10h]
mul esi
add edx,ecx
jb L4
cmp edx,dword ptr [esp+0Ch]
ja L4
jb L5
cmp eax,dword ptr [esp+8]
jbe L5
Feb 8, 2006
Feb 8, 2006
592
L4:
Jul 10, 2006
Jul 10, 2006
593
594
595
dec esi
sub eax,dword ptr [esp+10h]
sbb edx,dword ptr [esp+14h]
Feb 8, 2006
Feb 8, 2006
596
L5:
Jul 10, 2006
Jul 10, 2006
597
xor ebx,ebx
Feb 8, 2006
Feb 8, 2006
598
L2:
Jul 10, 2006
Jul 10, 2006
599
600
601
602
603
604
605
606
607
608
609
610
611
612
sub eax,dword ptr [esp+8]
sbb edx,dword ptr [esp+0Ch]
neg edx
neg eax
sbb edx,0
mov ecx,edx
mov edx,ebx
mov ebx,ecx
mov ecx,eax
mov eax,esi
pop esi
ret 10h
}
/* *INDENT-ON* */
Aug 27, 2008
Aug 27, 2008
614
Jul 10, 2006
Jul 10, 2006
615
616
617
void
__declspec(naked)
_allshl()
Jul 10, 2006
Jul 10, 2006
619
620
621
622
623
624
625
626
627
/* *INDENT-OFF* */
__asm {
cmp cl,40h
jae RETZERO
cmp cl,20h
jae MORE32
shld edx,eax,cl
shl eax,cl
ret
Feb 8, 2006
Feb 8, 2006
628
MORE32:
Jul 10, 2006
Jul 10, 2006
629
630
631
632
633
mov edx,eax
xor eax,eax
and cl,1Fh
shl edx,cl
ret
Feb 8, 2006
Feb 8, 2006
634
RETZERO:
Jul 10, 2006
Jul 10, 2006
635
636
637
638
639
xor eax,eax
xor edx,edx
ret
}
/* *INDENT-ON* */
Aug 27, 2008
Aug 27, 2008
641
Sep 15, 2008
Sep 15, 2008
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
void
__declspec(naked)
_allshr()
{
/* *INDENT-OFF* */
__asm {
cmp cl,40h
jae RETZERO
cmp cl,20h
jae MORE32
shrd eax,edx,cl
sar edx,cl
ret
MORE32:
mov eax,edx
xor edx,edx
and cl,1Fh
sar eax,cl
ret
RETZERO:
xor eax,eax
xor edx,edx
ret
}
/* *INDENT-ON* */
}
Jul 10, 2006
Jul 10, 2006
669
670
671
void
__declspec(naked)
_aullshr()
Jul 10, 2006
Jul 10, 2006
673
674
675
676
677
678
679
680
681
/* *INDENT-OFF* */
__asm {
cmp cl,40h
jae RETZERO
cmp cl,20h
jae MORE32
shrd eax,edx,cl
shr edx,cl
ret
Feb 8, 2006
Feb 8, 2006
682
MORE32:
Jul 10, 2006
Jul 10, 2006
683
684
685
686
687
mov eax,edx
xor edx,edx
and cl,1Fh
shr eax,cl
ret
Feb 8, 2006
Feb 8, 2006
688
RETZERO:
Jul 10, 2006
Jul 10, 2006
689
690
691
692
693
xor eax,eax
xor edx,edx
ret
}
/* *INDENT-ON* */
Sep 6, 2009
Sep 6, 2009
696
697
#endif /* _WIN64 */
698
699
#endif /* MSC_VER */
Feb 6, 2006
Feb 6, 2006
700
#endif /* !HAVE_LIBC */
Jul 10, 2006
Jul 10, 2006
701
702
/* vi: set ts=4 sw=4 expandtab: */