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