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