1 //===-- lib/truncdfhf2.c - double -> half conversion --------------*- C -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
12 #include "fp_trunc_impl.inc"
14 COMPILER_RT_ABI uint16_t __truncdfhf2(double a) {
15 return __truncXfYf2__(a);
18 #if defined(__ARM_EABI__)
19 #if defined(COMPILER_RT_ARMHF_TARGET)
20 AEABI_RTABI uint16_t __aeabi_d2h(double a) {
21 return __truncdfhf2(a);
24 AEABI_RTABI uint16_t __aeabi_d2h(double a) COMPILER_RT_ALIAS(__truncdfhf2);