]>
Commit | Line | Data |
---|---|---|
1a4d82fc JJ |
1 | //===-- lib/truncdfsf2.c - double -> single conversion ------------*- C -*-===// |
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 | //===----------------------------------------------------------------------===// | |
1a4d82fc | 9 | |
92a42be0 SL |
10 | #define SRC_DOUBLE |
11 | #define DST_SINGLE | |
12 | #include "fp_trunc_impl.inc" | |
1a4d82fc | 13 | |
92a42be0 SL |
14 | COMPILER_RT_ABI float __truncdfsf2(double a) { |
15 | return __truncXfYf2__(a); | |
1a4d82fc | 16 | } |
2c00a5a8 XL |
17 | |
18 | #if defined(__ARM_EABI__) | |
19 | #if defined(COMPILER_RT_ARMHF_TARGET) | |
20 | AEABI_RTABI float __aeabi_d2f(double a) { | |
21 | return __truncdfsf2(a); | |
22 | } | |
23 | #else | |
24 | AEABI_RTABI float __aeabi_d2f(double a) COMPILER_RT_ALIAS(__truncdfsf2); | |
25 | #endif | |
26 | #endif |