xref: /llvm-project/compiler-rt/lib/builtins/extendhfxf2.c (revision a5dd6463608bb09404e8a898ed337ef0b4a292c4)
1 //===-- lib/extendhfxf2.c - half -> long double conversion --------*- C -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 #include "int_lib.h"
9 #define SRC_HALF
10 #define DST_DOUBLE
11 #include "fp_extend_impl.inc"
12 
13 // Long double are expected to be as precise as double.
14 COMPILER_RT_ABI xf_float __extendhfxf2(src_t a) {
15   return (xf_float)__extendXfYf2__(a);
16 }
17