1 //===-- fixunssfsi.c - Implement __fixunssfsi -----------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // This file implements __fixunssfsi for the compiler_rt library.
11 //===----------------------------------------------------------------------===//
13 #define SINGLE_PRECISION
15 typedef su_int fixuint_t;
16 #include "fp_fixuint_impl.inc"
18 COMPILER_RT_ABI su_int __fixunssfsi(fp_t a) { return __fixuint(a); }
20 #if defined(__ARM_EABI__)
21 #if defined(COMPILER_RT_ARMHF_TARGET)
22 AEABI_RTABI su_int __aeabi_f2uiz(fp_t a) { return __fixunssfsi(a); }
24 COMPILER_RT_ALIAS(__fixunssfsi, __aeabi_f2uiz)