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