]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/compiler-rt/lib/builtins/truncdfsf2.c
MFV r322236: 8126 ztest assertion failed in dbuf_dirty due to dn_nlevels changing
[FreeBSD/FreeBSD.git] / contrib / compiler-rt / lib / builtins / truncdfsf2.c
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 //===----------------------------------------------------------------------===//
9
10 #define SRC_DOUBLE
11 #define DST_SINGLE
12 #include "fp_trunc_impl.inc"
13
14 COMPILER_RT_ABI float __truncdfsf2(double a) {
15     return __truncXfYf2__(a);
16 }
17
18 #if defined(__ARM_EABI__)
19 AEABI_RTABI float __aeabi_d2f(double a) {
20   return __truncdfsf2(a);
21 }
22 #endif
23