xref: /dragonfly/lib/libc/x86_64/stdlib/lldiv.S (revision 25a2db75)
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 * $FreeBSD: src/lib/libc/amd64/stdlib/lldiv.S,v 1.2 2008/11/02 01:10:54 peter Exp $
8 */
9
10#include <machine/asm.h>
11
12ENTRY(lldiv)
13	movq	%rdi,%rax
14	cqto
15	idivq	%rsi
16	ret
17END(lldiv)
18