1 //===-- lib/truncsfhf2.c - single -> half 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_SINGLE
11 #define DST_HALF
12 #include "fp_trunc_impl.inc"
13 
__truncsfhf2(float a)14 COMPILER_RT_ABI uint16_t __truncsfhf2(float a) {
15     return __truncXfYf2__(a);
16 }
17 
__gnu_f2h_ieee(float a)18 COMPILER_RT_ABI uint16_t __gnu_f2h_ieee(float a) {
19     return __truncXfYf2__(a);
20 }
21