s_lrint.S revision 217108
1140275Sdas/*- 2140275Sdas * Copyright (c) 2005 David Schultz <das@FreeBSD.ORG> 3140275Sdas * All rights reserved. 4140275Sdas * 5140275Sdas * Redistribution and use in source and binary forms, with or without 6140275Sdas * modification, are permitted provided that the following conditions 7140275Sdas * are met: 8140275Sdas * 1. Redistributions of source code must retain the above copyright 9140275Sdas * notice, this list of conditions and the following disclaimer. 10140275Sdas * 2. Redistributions in binary form must reproduce the above copyright 11140275Sdas * notice, this list of conditions and the following disclaimer in the 12140275Sdas * documentation and/or other materials provided with the distribution. 13140275Sdas * 14140275Sdas * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15140275Sdas * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16140275Sdas * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17140275Sdas * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18140275Sdas * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19140275Sdas * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20140275Sdas * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21140275Sdas * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22140275Sdas * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23140275Sdas * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24140275Sdas * SUCH DAMAGE. 25140275Sdas */ 26140275Sdas 27140275Sdas#include <machine/asm.h> 28140275Sdas 29140275Sdas#ifndef fn 30140275Sdas__FBSDID("$FreeBSD: head/lib/msun/amd64/s_lrint.S 217108 2011-01-07 16:13:12Z kib $") 31140275Sdas#define fn lrint 32140275Sdas#endif 33140275Sdas 34140275SdasENTRY(fn) 35140275Sdas cvtsd2si %xmm0, %rax 36140275Sdas ret 37192760SattilioEND(fn) 38217108Skib 39217108Skib .section .note.GNU-stack,"",%progbits 40