2009-08-05 12:02:56 +08:00
|
|
|
/* ===-- fixunssfsi.c - Implement __fixunssfsi -----------------------------===
|
|
|
|
*
|
|
|
|
* The LLVM Compiler Infrastructure
|
|
|
|
*
|
2010-11-17 06:13:33 +08:00
|
|
|
* This file is dual licensed under the MIT and the University of Illinois Open
|
|
|
|
* Source Licenses. See LICENSE.TXT for details.
|
2009-08-05 12:02:56 +08:00
|
|
|
*
|
|
|
|
* ===----------------------------------------------------------------------===
|
|
|
|
*
|
|
|
|
* This file implements __fixunssfsi for the compiler_rt library.
|
|
|
|
*
|
|
|
|
* ===----------------------------------------------------------------------===
|
|
|
|
*/
|
2009-06-27 00:47:03 +08:00
|
|
|
|
2015-03-12 05:13:56 +08:00
|
|
|
#define SINGLE_PRECISION
|
|
|
|
#include "fp_lib.h"
|
|
|
|
typedef su_int fixuint_t;
|
|
|
|
#include "fp_fixuint_impl.inc"
|
2009-06-27 00:47:03 +08:00
|
|
|
|
2011-04-20 01:52:09 +08:00
|
|
|
COMPILER_RT_ABI su_int
|
2015-03-12 05:13:56 +08:00
|
|
|
__fixunssfsi(fp_t a) {
|
|
|
|
return __fixuint(a);
|
2009-06-27 00:47:03 +08:00
|
|
|
}
|
2017-05-17 00:41:37 +08:00
|
|
|
|
|
|
|
#if defined(__ARM_EABI__)
|
2017-10-04 05:25:07 +08:00
|
|
|
#if defined(COMPILER_RT_ARMHF_TARGET)
|
2017-05-17 00:41:37 +08:00
|
|
|
AEABI_RTABI su_int __aeabi_f2uiz(fp_t a) {
|
|
|
|
return __fixunssfsi(a);
|
|
|
|
}
|
2017-10-04 05:25:07 +08:00
|
|
|
#else
|
|
|
|
AEABI_RTABI su_int __aeabi_f2uiz(fp_t a) COMPILER_RT_ALIAS(__fixunssfsi);
|
|
|
|
#endif
|
2017-05-17 00:41:37 +08:00
|
|
|
#endif
|