s_lrint.S revision 217108
1230557Sjimharris/*- 2230557Sjimharris * Copyright (c) 2005 David Schultz <das@FreeBSD.ORG> 3230557Sjimharris * All rights reserved. 4230557Sjimharris * 5230557Sjimharris * Redistribution and use in source and binary forms, with or without 6230557Sjimharris * modification, are permitted provided that the following conditions 7230557Sjimharris * are met: 8230557Sjimharris * 1. Redistributions of source code must retain the above copyright 9230557Sjimharris * notice, this list of conditions and the following disclaimer. 10230557Sjimharris * 2. Redistributions in binary form must reproduce the above copyright 11230557Sjimharris * notice, this list of conditions and the following disclaimer in the 12230557Sjimharris * documentation and/or other materials provided with the distribution. 13230557Sjimharris * 14230557Sjimharris * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15230557Sjimharris * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16230557Sjimharris * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17230557Sjimharris * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18230557Sjimharris * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19230557Sjimharris * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20230557Sjimharris * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21230557Sjimharris * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22230557Sjimharris * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23230557Sjimharris * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24230557Sjimharris * SUCH DAMAGE. 25230557Sjimharris */ 26230557Sjimharris 27230557Sjimharris#include <machine/asm.h> 28230557Sjimharris__FBSDID("$FreeBSD: head/lib/msun/i387/s_lrint.S 217108 2011-01-07 16:13:12Z kib $"); 29230557Sjimharris 30230557SjimharrisENTRY(lrint) 31230557Sjimharris fldl 4(%esp) 32230557Sjimharris subl $4,%esp 33230557Sjimharris fistpl (%esp) 34230557Sjimharris popl %eax 35230557Sjimharris ret 36230557SjimharrisEND(lrint) 37230557Sjimharris 38230557Sjimharris .section .note.GNU-stack,"",%progbits 39230557Sjimharris