repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Expand PMF_FN_* macros.
[netbsd-mini2440.git]
/
lib
/
libc
/
arch
/
i386
/
stdlib
/
ldiv.S
blob
e44b57a802e3261595ecd2d16a3d302834b26e97
1
/* $NetBSD: ldiv.S,v 1.7 2001/01/08 15:21:37 lukem Exp $ */
2
/*
3
* Written by J.T. Conklin <jtc@NetBSD.org>.
4
* Public domain.
5
*/
6
7
#include <machine/asm.h>
8
9
#if defined(LIBC_SCCS)
10
RCSID("$NetBSD: ldiv.S,v 1.7 2001/01/08 15:21:37 lukem Exp $")
11
#endif
12
13
ENTRY(ldiv)
14
pushl %ebx
15
movl 8(%esp),%ebx
16
movl 12(%esp),%eax
17
movl 16(%esp),%ecx
18
cdq
19
idiv %ecx
20
movl %eax,(%ebx)
21
movl %edx,4(%ebx)
22
popl %ebx
23
ret $4