1 //===-- lib/truncsfhf2.c - single -> 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 ARM_EABI_FNALIAS(f2h, truncsfhf2)
16 // Use a forwarding definition and noinline to implement a poor man's alias,
17 // as there isn't a good cross-platform way of defining one.
18 COMPILER_RT_ABI NOINLINE uint16_t __truncsfhf2(float a) {
19 return __truncXfYf2__(a);
22 COMPILER_RT_ABI uint16_t __gnu_f2h_ieee(float a) {
23 return __truncsfhf2(a);