Unverified Commit 2bc30bde authored by Anonmiraj's avatar Anonmiraj Committed by GitHub
Browse files

[libc][math] Refactor fmaximum-mag-fminimum-mag family to header-only (#195394)

Refactors the fmaximum-mag-fminimum-mag math family to be header-only.

part of: #147386

Target Functions:
  - fmaximum_mag
  - fmaximum_magbf16
  - fmaximum_magf
  - fmaximum_magf128
  - fmaximum_magf16
  - fmaximum_magl
  - fminimum_mag
  - fminimum_magbf16
  - fminimum_magf
  - fminimum_magf128
  - fminimum_magf16
  - fminimum_magl
parent 1cc9a8d1
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -178,9 +178,15 @@
#include "math/fmaxf128.h"
#include "math/fmaxf16.h"
#include "math/fmaximum.h"
#include "math/fmaximum_mag.h"
#include "math/fmaximum_mag_num.h"
#include "math/fmaximum_mag_numbf16.h"
#include "math/fmaximum_mag_numf.h"
#include "math/fmaximum_magbf16.h"
#include "math/fmaximum_magf.h"
#include "math/fmaximum_magf128.h"
#include "math/fmaximum_magf16.h"
#include "math/fmaximum_magl.h"
#include "math/fmaximum_num.h"
#include "math/fmaximum_numbf16.h"
#include "math/fmaximum_numf.h"
@@ -199,6 +205,12 @@
#include "math/fminf128.h"
#include "math/fminf16.h"
#include "math/fminimum.h"
#include "math/fminimum_mag.h"
#include "math/fminimum_magbf16.h"
#include "math/fminimum_magf.h"
#include "math/fminimum_magf128.h"
#include "math/fminimum_magf16.h"
#include "math/fminimum_magl.h"
#include "math/fminimum_num.h"
#include "math/fminimum_numbf16.h"
#include "math/fminimum_numf.h"
+23 −0
Original line number Diff line number Diff line
//===-- Shared fmaximum_mag 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_FMAXIMUM_MAG_H
#define LLVM_LIBC_SHARED_MATH_FMAXIMUM_MAG_H

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

namespace LIBC_NAMESPACE_DECL {
namespace shared {

using math::fmaximum_mag;

} // namespace shared
} // namespace LIBC_NAMESPACE_DECL

#endif // LLVM_LIBC_SHARED_MATH_FMAXIMUM_MAG_H
+23 −0
Original line number Diff line number Diff line
//===-- Shared fmaximum_magbf16 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_FMAXIMUM_MAGBF16_H
#define LLVM_LIBC_SHARED_MATH_FMAXIMUM_MAGBF16_H

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

namespace LIBC_NAMESPACE_DECL {
namespace shared {

using math::fmaximum_magbf16;

} // namespace shared
} // namespace LIBC_NAMESPACE_DECL

#endif // LLVM_LIBC_SHARED_MATH_FMAXIMUM_MAGBF16_H
+23 −0
Original line number Diff line number Diff line
//===-- Shared fmaximum_magf 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_FMAXIMUM_MAGF_H
#define LLVM_LIBC_SHARED_MATH_FMAXIMUM_MAGF_H

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

namespace LIBC_NAMESPACE_DECL {
namespace shared {

using math::fmaximum_magf;

} // namespace shared
} // namespace LIBC_NAMESPACE_DECL

#endif // LLVM_LIBC_SHARED_MATH_FMAXIMUM_MAGF_H
+29 −0
Original line number Diff line number Diff line
//===-- Shared fmaximum_magf128 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_FMAXIMUM_MAGF128_H
#define LLVM_LIBC_SHARED_MATH_FMAXIMUM_MAGF128_H

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

#ifdef LIBC_TYPES_HAS_FLOAT128

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

namespace LIBC_NAMESPACE_DECL {
namespace shared {

using math::fmaximum_magf128;

} // namespace shared
} // namespace LIBC_NAMESPACE_DECL

#endif // LIBC_TYPES_HAS_FLOAT128

#endif // LLVM_LIBC_SHARED_MATH_FMAXIMUM_MAGF128_H
Loading