repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
vm: fix a null dereference on out-of-memory
[minix.git]
/
lib
/
libc
/
arch
/
x86_64
/
stdlib
/
div.S
blob
5e98cc5698d781971aa39e2cf121733dfcb857aa
1
/* $NetBSD: div.S,v 1.1 2001/06/19 00:25:04 fvdl Exp $ */
2
/*
3
* Written by Frank van der Linden (fvdl@wasabisystems.com)
4
* Public domain.
5
*/
6
7
#include <machine/asm.h>
8
9
#if defined(LIBC_SCCS)
10
RCSID("$NetBSD: div.S,v 1.1 2001/06/19 00:25:04 fvdl Exp $")
11
#endif
12
13
ENTRY(div)
14
movl %edi, %eax
15
cltd
16
idivl %esi
17
salq $32, %rdx
18
orq %rdx,%rax
19
ret