1287516Sdim//===-- lib/extendhfsf2.c - half -> single conversion -------------*- C -*-===//
2287516Sdim//
3287516Sdim//                     The LLVM Compiler Infrastructure
4287516Sdim//
5287516Sdim// This file is dual licensed under the MIT and the University of Illinois Open
6287516Sdim// Source Licenses. See LICENSE.TXT for details.
7287516Sdim//
8287516Sdim//===----------------------------------------------------------------------===//
9287516Sdim//
10287516Sdim
11287516Sdim#define SRC_HALF
12287516Sdim#define DST_SINGLE
13287516Sdim#include "fp_extend_impl.inc"
14287516Sdim
15296417SdimARM_EABI_FNALIAS(h2f, extendhfsf2)
16296417Sdim
17287516Sdim// Use a forwarding definition and noinline to implement a poor man's alias,
18287516Sdim// as there isn't a good cross-platform way of defining one.
19296417SdimCOMPILER_RT_ABI NOINLINE float __extendhfsf2(uint16_t a) {
20287516Sdim    return __extendXfYf2__(a);
21287516Sdim}
22287516Sdim
23287516SdimCOMPILER_RT_ABI float __gnu_h2f_ieee(uint16_t a) {
24287516Sdim    return __extendhfsf2(a);
25287516Sdim}
26