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
Remove building with NOCRYPTO option
[minix.git]
/
lib
/
libc
/
arch
/
x86_64
/
stdlib
/
div.S
blob
3933df53b807105796f83a1a7b3eac154774a303
1
/* $NetBSD: div.S,v 1.2 2014/05/22 15:01:56 uebayasi 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.2 2014/05/22 15:01:56 uebayasi 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
20
END(div)