 b6cbf7203b
			
		
	
	
		b6cbf7203b
		
	
	
	
	
		
			
			This patch imports the unmodified current version of NetBSD libc. The NetBSD includes are in /nbsd_include, while the libc code itself is split between lib/nbsd_libc and common/lib/libc.
		
			
				
	
	
		
			24 lines
		
	
	
		
			404 B
		
	
	
	
		
			ArmAsm
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			404 B
		
	
	
	
		
			ArmAsm
		
	
	
	
	
	
| /*	$NetBSD: ldiv.S,v 1.8 2003/07/26 19:24:33 salo Exp $	*/
 | |
| /*
 | |
|  * Written by J.T. Conklin <jtc@NetBSD.org>.
 | |
|  * Public domain.
 | |
|  */
 | |
| 
 | |
| #include <machine/asm.h>
 | |
| 
 | |
| #if defined(LIBC_SCCS)
 | |
| RCSID("$NetBSD: ldiv.S,v 1.8 2003/07/26 19:24:33 salo Exp $")
 | |
| #endif
 | |
| 
 | |
| ENTRY(ldiv)
 | |
| 	pushl	%ebx
 | |
| 	movl	8(%esp),%ebx
 | |
| 	movl	12(%esp),%eax
 | |
| 	movl	16(%esp),%ecx
 | |
| 	cdq
 | |
| 	idiv	%ecx
 | |
| 	movl	%eax,(%ebx)
 | |
| 	movl	%edx,4(%ebx)
 | |
| 	popl	%ebx
 | |
| 	ret	$4
 |