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