2009-08-05 12:02:56 +08:00
|
|
|
/* ===-- fixunsdfsi.c - Implement __fixunsdfsi -----------------------------===
|
|
|
|
*
|
2019-01-19 18:56:40 +08:00
|
|
|
* Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
* See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2009-08-05 12:02:56 +08:00
|
|
|
*
|
|
|
|
* ===----------------------------------------------------------------------===
|
|
|
|
*/
|
2009-06-27 00:47:03 +08:00
|
|
|
|
2015-03-12 05:13:56 +08:00
|
|
|
#define DOUBLE_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
|
|
|
__fixunsdfsi(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_d2uiz(fp_t a) {
|
|
|
|
return __fixunsdfsi(a);
|
|
|
|
}
|
2017-10-04 05:25:07 +08:00
|
|
|
#else
|
|
|
|
AEABI_RTABI su_int __aeabi_d2uiz(fp_t a) COMPILER_RT_ALIAS(__fixunsdfsi);
|
|
|
|
#endif
|
2017-05-17 00:41:37 +08:00
|
|
|
#endif
|