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