1//===----------------------------------------------------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8///
9/// \file
10/// Implementation of the totalorderf128 function.
11///
12//===----------------------------------------------------------------------===//
13#ifndef LLVM_LIBC_SRC___SUPPORT_MATH_TOTALORDERF128_H
14#define LLVM_LIBC_SRC___SUPPORT_MATH_TOTALORDERF128_H
15
16#include "src/__support/FPUtil/BasicOperations.h"
17#include "src/__support/FPUtil/float128.h"
18#include "src/__support/macros/config.h"
19
20namespace LIBC_NAMESPACE_DECL {
21namespace math {
22
23using LIBC_NAMESPACE::fputil::Float128;
24
25LIBC_INLINE constexpr int totalorderf128(const Float128 *x, const Float128 *y) {
26 return static_cast<int>(fputil::totalorder(x: *x, y: *y));
27}
28
29} // namespace math
30} // namespace LIBC_NAMESPACE_DECL
31
32#endif // LLVM_LIBC_SRC___SUPPORT_MATH_TOTALORDERF128_H
33