blob: 8e7edbb3ed6994db66e97b7d802f1902cc3ab61e [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 the frexpf128 function.
///
//===----------------------------------------------------------------------===//
#include "src/math/frexpf128.h"
#include "src/__support/CPP/bit.h"
#include "src/__support/math/frexpf128.h"
namespace LIBC_NAMESPACE_DECL {
using LIBC_NAMESPACE::fputil::Float128;
LLVM_LIBC_FUNCTION(float128, frexpf128, (float128 x, int *exp)) {
return cpp::bit_cast<float128>(
math::frexpf128(cpp::bit_cast<Float128>(x), exp));
}
} // namespace LIBC_NAMESPACE_DECL