blob: 5227bfe3b9c05bdf4e8aafd863545fee2092adf7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Public domain.
*/
#include "DEFS.h"
ENTRY(div)
movl 4(%esp),%eax
movl 8(%esp),%ecx
cdq
idiv %ecx
movl %eax,4(%esp)
movl %edx,8(%esp)
ret
END_STRONG(div)
|