/* * Written by J.T. Conklin . * Public domain. */ #include #if defined(LIBC_SCCS) .text .asciz "$OpenBSD: div.S,v 1.3 1997/07/23 20:55:20 kstailey Exp $" #endif ENTRY(div) movl 4(%esp),%eax movl 8(%esp),%ecx cdq idiv %ecx movl %eax,4(%esp) movl %edx,8(%esp) ret