blob: c29b9fdf2d6adc667342c390882860c8b4ca1120 [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 totalordermagf80 function.
///
//===----------------------------------------------------------------------===//
#include "src/math/totalordermagf80.h"
#include "src/__support/CPP/bit.h"
#include "src/__support/math/totalordermagf80.h"
namespace LIBC_NAMESPACE_DECL {
using LIBC_NAMESPACE::fputil::Float80;
LLVM_LIBC_FUNCTION(int, totalordermagf80,
(const float80 *x, const float80 *y)) {
Float80 x_f80 = cpp::bit_cast<Float80>(*x);
Float80 y_f80 = cpp::bit_cast<Float80>(*y);
return math::totalordermagf80(&x_f80, &y_f80);
}
} // namespace LIBC_NAMESPACE_DECL