]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/compiler-rt/lib/builtins/fixsfdi.c
MFV ntp 4.2.8p2 (r281348)
[FreeBSD/FreeBSD.git] / contrib / compiler-rt / lib / builtins / fixsfdi.c
1 /* ===-- fixsfdi.c - Implement __fixsfdi -----------------------------------===
2  *
3  *                     The LLVM Compiler Infrastructure
4  *
5  * This file is dual licensed under the MIT and the University of Illinois Open
6  * Source Licenses. See LICENSE.TXT for details.
7  *
8  * ===----------------------------------------------------------------------===
9  */
10
11 #define SINGLE_PRECISION
12 #include "fp_lib.h"
13
14 ARM_EABI_FNALIAS(f2lz, fixsfdi)
15
16 typedef di_int fixint_t;
17 typedef du_int fixuint_t;
18 #include "fp_fixint_impl.inc"
19
20 COMPILER_RT_ABI di_int
21 __fixsfdi(fp_t a) {
22     return __fixint(a);
23 }