2009-08-05 12:02:56 +08:00
|
|
|
/* ===-- fixunssfsi.c - Implement __fixunssfsi -----------------------------===
|
|
|
|
*
|
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
|
|
|
*
|
|
|
|
* ===----------------------------------------------------------------------===
|
|
|
|
*
|
|
|
|
* 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
|
|
|
|
2019-04-29 05:53:32 +08:00
|
|
|
COMPILER_RT_ABI su_int __fixunssfsi(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_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
|