Home | History | Annotate | Line # | Download | only in builtins
      1 /* ===-- fixunssfsi.c - Implement __fixunssfsi -----------------------------===
      2  *
      3  *                     The LLVM Compiler Infrastructure
      4  *
      5  * This file is dual licensed under the MIT and the University of Illinois Open
      6  * Source Licenses. See LICENSE.TXT for details.
      7  *
      8  * ===----------------------------------------------------------------------===
      9  *
     10  * This file implements __fixunssfsi for the compiler_rt library.
     11  *
     12  * ===----------------------------------------------------------------------===
     13  */
     14 
     15 #define SINGLE_PRECISION
     16 #include "fp_lib.h"
     17 typedef su_int fixuint_t;
     18 #include "fp_fixuint_impl.inc"
     19 
     20 COMPILER_RT_ABI su_int
     21 __fixunssfsi(fp_t a) {
     22     return __fixuint(a);
     23 }
     24 
     25 #if defined(__ARM_EABI__)
     26 #if defined(COMPILER_RT_ARMHF_TARGET)
     27 AEABI_RTABI su_int __aeabi_f2uiz(fp_t a) {
     28   return __fixunssfsi(a);
     29 }
     30 #else
     31 AEABI_RTABI su_int __aeabi_f2uiz(fp_t a) COMPILER_RT_ALIAS(__fixunssfsi);
     32 #endif
     33 #endif
     34