s_llrintl.S revision 217108
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: head/lib/msun/i387/s_llrintl.S 217108 2011-01-07 16:13:12Z kib $"); 29175309Sdas 30175309SdasENTRY(llrintl) 31175309Sdas fldt 4(%esp) 32175309Sdas subl $8,%esp 33175309Sdas fistpll (%esp) 34175309Sdas popl %eax 35175309Sdas popl %edx 36175309Sdas ret 37217108Skib 38217108Skib .section .note.GNU-stack,"",%progbits 39