blob: 7524e2ea7ed6fdc96c97bf5b20ffbcc7ea9764dd [file] [log] [blame]
Pirama Arumuga Nainara4cf3ee2015-05-20 13:03:23 -07001//===-- lib/extendhfsf2.c - half -> 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
11#define SRC_HALF
12#define DST_SINGLE
13#include "fp_extend_impl.inc"
14
Pirama Arumuga Nainarcdce50b2015-07-01 12:26:56 -070015// Use a forwarding definition and noinline to implement a poor man's alias,
16// as there isn't a good cross-platform way of defining one.
17COMPILER_RT_ABI __attribute__((noinline)) float __extendhfsf2(uint16_t a) {
Pirama Arumuga Nainara4cf3ee2015-05-20 13:03:23 -070018 return __extendXfYf2__(a);
19}
20
21COMPILER_RT_ABI float __gnu_h2f_ieee(uint16_t a) {
Pirama Arumuga Nainarcdce50b2015-07-01 12:26:56 -070022 return __extendhfsf2(a);
Pirama Arumuga Nainara4cf3ee2015-05-20 13:03:23 -070023}