xref: /freebsd/lib/libc/amd64/stdlib/lldiv.S (revision a03411e84728e9b267056fd31c7d1d9d1dc1b01e)
1/*	$NetBSD: ldiv.S,v 1.1 2001/06/19 00:25:04 fvdl Exp $	*/
2
3/*-
4 * Written by gcc 3.0.
5 * Copy/pasted by Frank van der Linden (fvdl@wasabisystems.com)
6 */
7
8#include <machine/asm.h>
9ENTRY(lldiv)
10	movq	%rdi,%rax
11	cqto
12	idivq	%rsi
13	ret
14END(lldiv)
15
16	.section .note.GNU-stack,"",%progbits
17