blob: f74d1529508fb5999fd42cec5f59291821c0551e [file]
//===----------------------------------------------------------------------===//
//
// 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
/// Implementation of getpayloadf128 function.
///
//===----------------------------------------------------------------------===//
#include "src/math/getpayloadf128.h"
#include "src/__support/CPP/bit.h"
#include "src/__support/math/getpayloadf128.h"
namespace LIBC_NAMESPACE_DECL {
using LIBC_NAMESPACE::fputil::Float128;
LLVM_LIBC_FUNCTION(float128, getpayloadf128, (const float128 *x)) {
return cpp::bit_cast<float128>(
math::getpayloadf128(cpp::bit_cast<const Float128 *>(x)));
}
} // namespace LIBC_NAMESPACE_DECL