1175309Sdas/*-
2175309Sdas * Copyright (c) 2005 David Schultz <das@FreeBSD.ORG>
3175309Sdas * All rights reserved.
4175309Sdas *
5175309Sdas * Redistribution and use in source and binary forms, with or without
6175309Sdas * modification, are permitted provided that the following conditions
7175309Sdas * are met:
8175309Sdas * 1. Redistributions of source code must retain the above copyright
9175309Sdas *    notice, this list of conditions and the following disclaimer.
10175309Sdas * 2. Redistributions in binary form must reproduce the above copyright
11175309Sdas *    notice, this list of conditions and the following disclaimer in the
12175309Sdas *    documentation and/or other materials provided with the distribution.
13175309Sdas *
14175309Sdas * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15175309Sdas * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16175309Sdas * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17175309Sdas * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18175309Sdas * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19175309Sdas * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20175309Sdas * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21175309Sdas * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22175309Sdas * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23175309Sdas * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24175309Sdas * SUCH DAMAGE.
25175309Sdas */
26175309Sdas
27175309Sdas#include <machine/asm.h>
28175309Sdas__FBSDID("$FreeBSD$");
29175309Sdas
30175309SdasENTRY(llrintl)
31175309Sdas	fldt	8(%rsp)
32175309Sdas	subq	$8,%rsp
33175309Sdas	fistpll	(%rsp)
34175309Sdas	popq	%rax
35175309Sdas	ret
36217108Skib
37217108Skib	.section .note.GNU-stack,"",%progbits
38