xref: /freebsd/lib/msun/i387/s_lrintf.S (revision 1d386b48a555f61cb7325543adbbb5c3f3407a66)
1a4ca7ca8SDavid Schultz/*-
2a4ca7ca8SDavid Schultz * Copyright (c) 2005 David Schultz <das@FreeBSD.ORG>
3a4ca7ca8SDavid Schultz * All rights reserved.
4a4ca7ca8SDavid Schultz *
5a4ca7ca8SDavid Schultz * Redistribution and use in source and binary forms, with or without
6a4ca7ca8SDavid Schultz * modification, are permitted provided that the following conditions
7a4ca7ca8SDavid Schultz * are met:
8a4ca7ca8SDavid Schultz * 1. Redistributions of source code must retain the above copyright
9a4ca7ca8SDavid Schultz *    notice, this list of conditions and the following disclaimer.
10a4ca7ca8SDavid Schultz * 2. Redistributions in binary form must reproduce the above copyright
11a4ca7ca8SDavid Schultz *    notice, this list of conditions and the following disclaimer in the
12a4ca7ca8SDavid Schultz *    documentation and/or other materials provided with the distribution.
13a4ca7ca8SDavid Schultz *
14a4ca7ca8SDavid Schultz * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15a4ca7ca8SDavid Schultz * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16a4ca7ca8SDavid Schultz * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17a4ca7ca8SDavid Schultz * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18a4ca7ca8SDavid Schultz * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19a4ca7ca8SDavid Schultz * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20a4ca7ca8SDavid Schultz * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21a4ca7ca8SDavid Schultz * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22a4ca7ca8SDavid Schultz * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23a4ca7ca8SDavid Schultz * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24a4ca7ca8SDavid Schultz * SUCH DAMAGE.
25a4ca7ca8SDavid Schultz */
26a4ca7ca8SDavid Schultz
27a4ca7ca8SDavid Schultz#include <machine/asm.h>
28a4ca7ca8SDavid SchultzENTRY(lrintf)
29a4ca7ca8SDavid Schultz	flds	4(%esp)
30a4ca7ca8SDavid Schultz	subl	$4,%esp
31a4ca7ca8SDavid Schultz	fistpl	(%esp)
32a4ca7ca8SDavid Schultz	popl	%eax
33a4ca7ca8SDavid Schultz	ret
349235ed71SAttilio RaoEND(lrintf)
35*8997563cSKonstantin Belousov
36*8997563cSKonstantin Belousov	.section .note.GNU-stack,"",%progbits
37