1111657Stjr/*-
2111657Stjr * Copyright (c) 2005 David Schultz <das@FreeBSD.ORG>
3111657Stjr * All rights reserved.
4111657Stjr *
5111657Stjr * Redistribution and use in source and binary forms, with or without
6111657Stjr * modification, are permitted provided that the following conditions
7111657Stjr * are met:
8111657Stjr * 1. Redistributions of source code must retain the above copyright
9111657Stjr *    notice, this list of conditions and the following disclaimer.
10111657Stjr * 2. Redistributions in binary form must reproduce the above copyright
11111657Stjr *    notice, this list of conditions and the following disclaimer in the
12111657Stjr *    documentation and/or other materials provided with the distribution.
13111657Stjr *
14111657Stjr * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15111657Stjr * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16111657Stjr * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17111657Stjr * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18111657Stjr * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19111657Stjr * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20111657Stjr * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21111657Stjr * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22111657Stjr * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23111657Stjr * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24111657Stjr * SUCH DAMAGE.
25111657Stjr */
26111657Stjr
27111657Stjr#include <machine/asm.h>
28111657Stjr
29111657Stjr#ifndef fn
30111657Stjr__FBSDID("$FreeBSD$")
31111657Stjr#define	fn	lrintf
32111657Stjr#endif
33111657Stjr
34111657StjrENTRY(fn)
35111657Stjr	cvtss2si %xmm0, %rax
36111657Stjr	ret
37111657StjrEND(fn)
38111657Stjr
39111657Stjr	.section .note.GNU-stack,"",%progbits
40111657Stjr