1f5dcfb99SOverMighty //===-- Implementation of totalorderf16 function --------------------------===// 2f5dcfb99SOverMighty // 3f5dcfb99SOverMighty // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4f5dcfb99SOverMighty // See https://llvm.org/LICENSE.txt for license information. 5f5dcfb99SOverMighty // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6f5dcfb99SOverMighty // 7f5dcfb99SOverMighty //===----------------------------------------------------------------------===// 8f5dcfb99SOverMighty 9f5dcfb99SOverMighty #include "src/math/totalorderf16.h" 10f5dcfb99SOverMighty #include "src/__support/FPUtil/BasicOperations.h" 11f5dcfb99SOverMighty #include "src/__support/common.h" 12*5ff3ff33SPetr Hosek #include "src/__support/macros/config.h" 13f5dcfb99SOverMighty 14*5ff3ff33SPetr Hosek namespace LIBC_NAMESPACE_DECL { 15f5dcfb99SOverMighty 16f5dcfb99SOverMighty LLVM_LIBC_FUNCTION(int, totalorderf16, (const float16 *x, const float16 *y)) { 17f5dcfb99SOverMighty return static_cast<int>(fputil::totalorder(*x, *y)); 18f5dcfb99SOverMighty } 19f5dcfb99SOverMighty 20*5ff3ff33SPetr Hosek } // namespace LIBC_NAMESPACE_DECL 21