diff options
Diffstat (limited to 'contrib/compiler-rt/lib/builtins/fixunssfdi.c')
-rw-r--r-- | contrib/compiler-rt/lib/builtins/fixunssfdi.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/contrib/compiler-rt/lib/builtins/fixunssfdi.c b/contrib/compiler-rt/lib/builtins/fixunssfdi.c new file mode 100644 index 000000000000..cd21cfd1859b --- /dev/null +++ b/contrib/compiler-rt/lib/builtins/fixunssfdi.c @@ -0,0 +1,21 @@ +/* ===-- fixunssfdi.c - Implement __fixunssfdi -----------------------------=== + * + * The LLVM Compiler Infrastructure + * + * This file is dual licensed under the MIT and the University of Illinois Open + * Source Licenses. See LICENSE.TXT for details. + * + * ===----------------------------------------------------------------------=== + */ + +#define SINGLE_PRECISION +#include "fp_lib.h" +typedef du_int fixuint_t; +#include "fp_fixuint_impl.inc" + +ARM_EABI_FNALIAS(f2ulz, fixunssfdi) + +COMPILER_RT_ABI du_int +__fixunssfdi(fp_t a) { + return __fixuint(a); +} |