
This brings our tree to NetBSD 7.0, as found on -current on the 10-10-2015. This updates: - LLVM to 3.6.1 - GCC to GCC 5.1 - Replace minix/commands/zdump with usr.bin/zdump - external/bsd/libelf has moved to /external/bsd/elftoolchain/ - Import ctwm - Drop sprintf from libminc Change-Id: I149836ac18e9326be9353958bab9b266efb056f0
26 lines
436 B
ArmAsm
26 lines
436 B
ArmAsm
/* $NetBSD: div.S,v 1.10 2014/05/23 02:34:19 uebayasi Exp $ */
|
|
/*
|
|
* Written by J.T. Conklin <jtc@NetBSD.org>.
|
|
* Public domain.
|
|
*/
|
|
|
|
#include <machine/asm.h>
|
|
|
|
#if defined(LIBC_SCCS)
|
|
RCSID("$NetBSD: div.S,v 1.10 2014/05/23 02:34:19 uebayasi Exp $")
|
|
#endif
|
|
|
|
ENTRY(div)
|
|
pushl %ebx
|
|
movl 8(%esp),%ebx
|
|
movl 12(%esp),%eax
|
|
movl 16(%esp),%ecx
|
|
cdq
|
|
idiv %ecx
|
|
movl %eax,(%ebx)
|
|
movl %edx,4(%ebx)
|
|
movl %ebx,%eax
|
|
popl %ebx
|
|
ret $4
|
|
END(div)
|