blob: e07ef02e9c239d97f50a1ecf392137f21170965d [file] [edit]
//===----------------------------------------------------------------------===//
//
// 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 float128 scalbln function.
///
//===----------------------------------------------------------------------===//
#include "src/math/scalblnf128.h"
#include "src/__support/CPP/bit.h"
#include "src/__support/math/scalblnf128.h"
namespace LIBC_NAMESPACE_DECL {
using LIBC_NAMESPACE::fputil::Float128;
LLVM_LIBC_FUNCTION(float128, scalblnf128, (float128 x, long n)) {
return cpp::bit_cast<float128>(
math::scalblnf128(cpp::bit_cast<Float128>(x), n));
}
} // namespace LIBC_NAMESPACE_DECL