]> git.proxmox.com Git - rustc.git/blame - src/libcompiler_builtins/compiler-rt/lib/builtins/fixunsdfsi.c
New upstream version 1.25.0+dfsg1
[rustc.git] / src / libcompiler_builtins / compiler-rt / lib / builtins / fixunsdfsi.c
CommitLineData
1a4d82fc
JJ
1/* ===-- fixunsdfsi.c - Implement __fixunsdfsi -----------------------------===
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 * ===----------------------------------------------------------------------===
1a4d82fc
JJ
9 */
10
92a42be0
SL
11#define DOUBLE_PRECISION
12#include "fp_lib.h"
13typedef su_int fixuint_t;
14#include "fp_fixuint_impl.inc"
1a4d82fc 15
1a4d82fc 16COMPILER_RT_ABI su_int
92a42be0
SL
17__fixunsdfsi(fp_t a) {
18 return __fixuint(a);
1a4d82fc 19}
2c00a5a8
XL
20
21#if defined(__ARM_EABI__)
22#if defined(COMPILER_RT_ARMHF_TARGET)
23AEABI_RTABI su_int __aeabi_d2uiz(fp_t a) {
24 return __fixunsdfsi(a);
25}
26#else
27AEABI_RTABI su_int __aeabi_d2uiz(fp_t a) COMPILER_RT_ALIAS(__fixunsdfsi);
28#endif
29#endif