1140086Sdas/*- 2140086Sdas * Copyright (c) 2005 David Schultz <das@FreeBSD.ORG> 3140086Sdas * All rights reserved. 4140086Sdas * 5140086Sdas * Redistribution and use in source and binary forms, with or without 6140086Sdas * modification, are permitted provided that the following conditions 7140086Sdas * are met: 8140086Sdas * 1. Redistributions of source code must retain the above copyright 9140086Sdas * notice, this list of conditions and the following disclaimer. 10140086Sdas * 2. Redistributions in binary form must reproduce the above copyright 11140086Sdas * notice, this list of conditions and the following disclaimer in the 12140086Sdas * documentation and/or other materials provided with the distribution. 13140086Sdas * 14140086Sdas * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15140086Sdas * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16140086Sdas * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17140086Sdas * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18140086Sdas * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19140086Sdas * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20140086Sdas * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21140086Sdas * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22140086Sdas * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23140086Sdas * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24140086Sdas * SUCH DAMAGE. 25140086Sdas */ 26140086Sdas 27140086Sdas#include <machine/asm.h> 28140086Sdas__FBSDID("$FreeBSD: releng/11.0/lib/msun/i387/s_lrint.S 217108 2011-01-07 16:13:12Z kib $"); 29140086Sdas 30140086SdasENTRY(lrint) 31140086Sdas fldl 4(%esp) 32140086Sdas subl $4,%esp 33140086Sdas fistpl (%esp) 34140086Sdas popl %eax 35140086Sdas ret 36192760SattilioEND(lrint) 37217108Skib 38217108Skib .section .note.GNU-stack,"",%progbits 39