1fe88d4270b6ab5358b8e28decc848c496f67988cjzha/*
2fe88d4270b6ab5358b8e28decc848c496f67988cjzhaCopyright (c) 2014, Intel Corporation
3fe88d4270b6ab5358b8e28decc848c496f67988cjzhaAll rights reserved.
4fe88d4270b6ab5358b8e28decc848c496f67988cjzhaRedistribution and use in source and binary forms, with or without
5fe88d4270b6ab5358b8e28decc848c496f67988cjzhamodification, are permitted provided that the following conditions are met:
6fe88d4270b6ab5358b8e28decc848c496f67988cjzha    * Redistributions of source code must retain the above copyright notice,
7fe88d4270b6ab5358b8e28decc848c496f67988cjzha    * this list of conditions and the following disclaimer.
8fe88d4270b6ab5358b8e28decc848c496f67988cjzha    * Redistributions in binary form must reproduce the above copyright notice,
9fe88d4270b6ab5358b8e28decc848c496f67988cjzha    * this list of conditions and the following disclaimer in the documentation
10fe88d4270b6ab5358b8e28decc848c496f67988cjzha    * and/or other materials provided with the distribution.
11fe88d4270b6ab5358b8e28decc848c496f67988cjzha    * Neither the name of Intel Corporation nor the names of its contributors
12fe88d4270b6ab5358b8e28decc848c496f67988cjzha    * may be used to endorse or promote products derived from this software
13fe88d4270b6ab5358b8e28decc848c496f67988cjzha    * without specific prior written permission.
14fe88d4270b6ab5358b8e28decc848c496f67988cjzhaTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
15fe88d4270b6ab5358b8e28decc848c496f67988cjzhaANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
16fe88d4270b6ab5358b8e28decc848c496f67988cjzhaWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17fe88d4270b6ab5358b8e28decc848c496f67988cjzhaDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
18fe88d4270b6ab5358b8e28decc848c496f67988cjzhaANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
19fe88d4270b6ab5358b8e28decc848c496f67988cjzha(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
20fe88d4270b6ab5358b8e28decc848c496f67988cjzhaLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
21fe88d4270b6ab5358b8e28decc848c496f67988cjzhaANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22fe88d4270b6ab5358b8e28decc848c496f67988cjzha(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
23fe88d4270b6ab5358b8e28decc848c496f67988cjzhaSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24fe88d4270b6ab5358b8e28decc848c496f67988cjzha*/
25fe88d4270b6ab5358b8e28decc848c496f67988cjzha
26fe88d4270b6ab5358b8e28decc848c496f67988cjzha#include <private/bionic_asm.h>
27fe88d4270b6ab5358b8e28decc848c496f67988cjzha
28fe88d4270b6ab5358b8e28decc848c496f67988cjzhaENTRY(rint)
29fe88d4270b6ab5358b8e28decc848c496f67988cjzha  subl    $12,%esp
30fe88d4270b6ab5358b8e28decc848c496f67988cjzha  movsd   16(%esp),%xmm0
31fe88d4270b6ab5358b8e28decc848c496f67988cjzha  roundsd $4,%xmm0,%xmm0
32fe88d4270b6ab5358b8e28decc848c496f67988cjzha  movsd   %xmm0,(%esp)
33fe88d4270b6ab5358b8e28decc848c496f67988cjzha  fldl    (%esp)
34fe88d4270b6ab5358b8e28decc848c496f67988cjzha  addl    $12,%esp
35fe88d4270b6ab5358b8e28decc848c496f67988cjzha  ret
36fe88d4270b6ab5358b8e28decc848c496f67988cjzhaEND(rint)
37fe88d4270b6ab5358b8e28decc848c496f67988cjzha
38fe88d4270b6ab5358b8e28decc848c496f67988cjzha// LP32 sizeof(long double) == sizeof(double).
39fe88d4270b6ab5358b8e28decc848c496f67988cjzhaALIAS_SYMBOL(rintl, rint);
40