1 /* ===-- fixdfdi.c - Implement __fixdfdi -----------------------------------===
3 * The LLVM Compiler Infrastructure
5 * This file is dual licensed under the MIT and the University of Illinois Open
6 * Source Licenses. See LICENSE.TXT for details.
8 * ===----------------------------------------------------------------------===
11 #define DOUBLE_PRECISION
13 ARM_EABI_FNALIAS(d2lz, fixdfdi)
16 /* Support for systems that have hardware floating-point; can set the invalid
17 * flag as a side-effect of computation.
20 COMPILER_RT_ABI du_int __fixunsdfdi(double a);
22 COMPILER_RT_ABI di_int
26 return -__fixunsdfdi(-a);
28 return __fixunsdfdi(a);
32 /* Support for systems that don't have hardware floating-point; there are no
33 * flags to set, and we don't want to code-gen to an unknown soft-float
37 typedef di_int fixint_t;
38 typedef du_int fixuint_t;
39 #include "fp_fixint_impl.inc"
41 COMPILER_RT_ABI di_int