Copy wininet to branch
[reactos.git] / reactos / ntoskrnl / rtl / i386 / alldiv.s
1 /* $Id$
2 *
3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS kernel
5 * PURPOSE: Math support for IA-32
6 * FILE: ntoskrnl/rtl/i386/alldiv.s
7 * PROGRAMER: Eric Kohl (ekohl@rz-online.de)
8 */
9
10 /*
11 * long long
12 * __alldiv(long long Dividend, long long Divisor);
13 *
14 * Parameters:
15 * [ESP+04h] - long long Dividend
16 * [ESP+0Ch] - long long Divisor
17 * Registers:
18 * Unknown
19 * Returns:
20 * EDX:EAX - long long quotient (Dividend/Divisor)
21 * Notes:
22 * Routine removes the arguments from the stack.
23 */
24 .globl __alldiv
25 __alldiv:
26 call ___divdi3
27 ret $0x10
28
29 /*
30 __alldiv:
31 pushl %ebp
32 movl %esp, %ebp
33 pushl %eax
34 pushl %eax
35 movl 20(%ebp), %eax
36 pushl %eax
37 movl 16(%ebp), %eax
38 pushl %eax
39 movl 12(%ebp), %eax
40 pushl %eax
41 movl 8(%ebp), %eax
42 pushl %eax
43 call ___divdi3
44 addl $16, %esp
45 movl %ebp, %esp
46 popl %ebp
47 ret
48 */
49
50 /* EOF */