2019-04-29 06:47:49 +08:00
|
|
|
//===-- fixunsdfsi.c - Implement __fixunsdfsi -----------------------------===//
|
|
|
|
//
|
|
|
|
// 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-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
|
|
|
|
2019-04-29 05:53:32 +08:00
|
|
|
COMPILER_RT_ABI su_int __fixunsdfsi(fp_t a) { return __fixuint(a); }
|
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)
|
2019-04-29 05:53:32 +08:00
|
|
|
AEABI_RTABI su_int __aeabi_d2uiz(fp_t a) { return __fixunsdfsi(a); }
|
2017-10-04 05:25:07 +08:00
|
|
|
#else
|
2019-04-29 08:46:23 +08:00
|
|
|
COMPILER_RT_ALIAS(__fixunsdfsi, __aeabi_d2uiz)
|
2017-10-04 05:25:07 +08:00
|
|
|
#endif
|
2017-05-17 00:41:37 +08:00
|
|
|
#endif
|