Unverified Commit 7d853a22 authored by Anonmiraj's avatar Anonmiraj Committed by GitHub
Browse files

[libc][math] Refactor totalorder, totalordermag family to header-only (#195399)



Refactors the totalorder, totalordermag math family to be header-only.

part of: #147386

Target Functions:
  - totalorder
  - totalorderbf16
  - totalorderf
  - totalorderf128
  - totalorderf16
  - totalorderl
  - totalordermag
  - totalordermagbf16
  - totalordermagf
  - totalordermagf128
  - totalordermagf16
  - totalordermagl

---------

Co-authored-by: default avatarbassiounix <muhammad.m.bassiouni@gmail.com>
parent 562ba804
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -335,6 +335,18 @@
#include "math/tanhf16.h"
#include "math/tanpif.h"
#include "math/tanpif16.h"
#include "math/totalorder.h"
#include "math/totalorderbf16.h"
#include "math/totalorderf.h"
#include "math/totalorderf128.h"
#include "math/totalorderf16.h"
#include "math/totalorderl.h"
#include "math/totalordermag.h"
#include "math/totalordermagbf16.h"
#include "math/totalordermagf.h"
#include "math/totalordermagf128.h"
#include "math/totalordermagf16.h"
#include "math/totalordermagl.h"
#include "math/ufromfp.h"
#include "math/ufromfpbf16.h"
#include "math/ufromfpf.h"
+23 −0
Original line number Diff line number Diff line
//===-- Shared totalorder function ------------------------------*- C++ -*-===//
//
// 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
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_LIBC_SHARED_MATH_TOTALORDER_H
#define LLVM_LIBC_SHARED_MATH_TOTALORDER_H

#include "shared/libc_common.h"
#include "src/__support/math/totalorder.h"

namespace LIBC_NAMESPACE_DECL {
namespace shared {

using math::totalorder;

} // namespace shared
} // namespace LIBC_NAMESPACE_DECL

#endif // LLVM_LIBC_SHARED_MATH_TOTALORDER_H
+23 −0
Original line number Diff line number Diff line
//===-- Shared totalorderbf16 function --------------------------*- C++ -*-===//
//
// 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
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_LIBC_SHARED_MATH_TOTALORDERBF16_H
#define LLVM_LIBC_SHARED_MATH_TOTALORDERBF16_H

#include "shared/libc_common.h"
#include "src/__support/math/totalorderbf16.h"

namespace LIBC_NAMESPACE_DECL {
namespace shared {

using math::totalorderbf16;

} // namespace shared
} // namespace LIBC_NAMESPACE_DECL

#endif // LLVM_LIBC_SHARED_MATH_TOTALORDERBF16_H
+23 −0
Original line number Diff line number Diff line
//===-- Shared totalorderf function -----------------------------*- C++ -*-===//
//
// 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
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_LIBC_SHARED_MATH_TOTALORDERF_H
#define LLVM_LIBC_SHARED_MATH_TOTALORDERF_H

#include "shared/libc_common.h"
#include "src/__support/math/totalorderf.h"

namespace LIBC_NAMESPACE_DECL {
namespace shared {

using math::totalorderf;

} // namespace shared
} // namespace LIBC_NAMESPACE_DECL

#endif // LLVM_LIBC_SHARED_MATH_TOTALORDERF_H
+29 −0
Original line number Diff line number Diff line
//===-- Shared totalorderf128 function --------------------------*- C++ -*-===//
//
// 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
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_LIBC_SHARED_MATH_TOTALORDERF128_H
#define LLVM_LIBC_SHARED_MATH_TOTALORDERF128_H

#include "include/llvm-libc-types/float128.h"

#ifdef LIBC_TYPES_HAS_FLOAT128

#include "shared/libc_common.h"
#include "src/__support/math/totalorderf128.h"

namespace LIBC_NAMESPACE_DECL {
namespace shared {

using math::totalorderf128;

} // namespace shared
} // namespace LIBC_NAMESPACE_DECL

#endif // LIBC_TYPES_HAS_FLOAT128

#endif // LLVM_LIBC_SHARED_MATH_TOTALORDERF128_H
Loading