mirror-llvm-project/compiler-rt/lib/builtins/extenddftf2.cpp
hulxv 0879c1092c
[compiler-rt][builtins] libc-backed floating-point extend/trunct builtins (#209984)
Add libc-backed floating-point extend/truncate builtins

Part of #197824
2026-07-31 00:50:13 +00:00

25 lines
854 B
C++

//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
///
/// \file
/// This file implements compiler-rt's __extenddftf2, extend double to float128,
/// on top of LLVM-libc's shared::extenddftf2.
///
//===----------------------------------------------------------------------===//
#define QUAD_PRECISION
#include "fp_lib.h"
#include "fp_libc_config.h"
#include "shared/builtins/extenddftf2.h"
#ifdef CRT_HAS_TF_MODE
extern "C" COMPILER_RT_ABI tf_float __extenddftf2(double a) {
return LIBC_NAMESPACE::shared::extenddftf2(a);
}
#endif