xref: /freebsd/lib/libc/amd64/stdlib/lldiv.S (revision b0d29bc47dba79f6f38e67eabadfb4b32ffd9390)
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>
9__FBSDID("$FreeBSD$");
10
11ENTRY(lldiv)
12	movq	%rdi,%rax
13	cqto
14	idivq	%rsi
15	ret
16END(lldiv)
17
18	.section .note.GNU-stack,"",%progbits
19