Home | History | Annotate | Line # | Download | only in builtins
      1  1.1  joerg //===-- lib/truncdfsf2.c - double -> single conversion ------------*- C -*-===//
      2  1.1  joerg //
      3  1.1  joerg //                     The LLVM Compiler Infrastructure
      4  1.1  joerg //
      5  1.1  joerg // This file is dual licensed under the MIT and the University of Illinois Open
      6  1.1  joerg // Source Licenses. See LICENSE.TXT for details.
      7  1.1  joerg //
      8  1.1  joerg //===----------------------------------------------------------------------===//
      9  1.1  joerg 
     10  1.2    rin #define SRC_DOUBLE
     11  1.2    rin #define DST_SINGLE
     12  1.2    rin #include "fp_trunc_impl.inc"
     13  1.1  joerg 
     14  1.2    rin COMPILER_RT_ABI float __truncdfsf2(double a) {
     15  1.2    rin     return __truncXfYf2__(a);
     16  1.1  joerg }
     17  1.1  joerg 
     18  1.2    rin #if defined(__ARM_EABI__)
     19  1.3    rin #if defined(COMPILER_RT_ARMHF_TARGET)
     20  1.2    rin AEABI_RTABI float __aeabi_d2f(double a) {
     21  1.2    rin   return __truncdfsf2(a);
     22  1.1  joerg }
     23  1.3    rin #else
     24  1.3    rin AEABI_RTABI float __aeabi_d2f(double a) COMPILER_RT_ALIAS(__truncdfsf2);
     25  1.3    rin #endif
     26  1.2    rin #endif
     27