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

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

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

part of: #147386

Target Functions:
  - fmaximum_mag_numf128
  - fmaximum_mag_numf16
  - fmaximum_mag_numl
  - fminimum_mag_num
  - fminimum_mag_numbf16
  - fminimum_mag_numf
  - fminimum_mag_numf128
  - fminimum_mag_numf16
  - fminimum_mag_numl
parent a5c9be0a
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -182,6 +182,9 @@
#include "math/fmaximum_mag_num.h"
#include "math/fmaximum_mag_numbf16.h"
#include "math/fmaximum_mag_numf.h"
#include "math/fmaximum_mag_numf128.h"
#include "math/fmaximum_mag_numf16.h"
#include "math/fmaximum_mag_numl.h"
#include "math/fmaximum_magbf16.h"
#include "math/fmaximum_magf.h"
#include "math/fmaximum_magf128.h"
@@ -206,6 +209,12 @@
#include "math/fminf16.h"
#include "math/fminimum.h"
#include "math/fminimum_mag.h"
#include "math/fminimum_mag_num.h"
#include "math/fminimum_mag_numbf16.h"
#include "math/fminimum_mag_numf.h"
#include "math/fminimum_mag_numf128.h"
#include "math/fminimum_mag_numf16.h"
#include "math/fminimum_mag_numl.h"
#include "math/fminimum_magbf16.h"
#include "math/fminimum_magf.h"
#include "math/fminimum_magf128.h"
+29 −0
Original line number Diff line number Diff line
//===-- Shared fmaximum_mag_numf128 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_NUMF128_H
#define LLVM_LIBC_SHARED_MATH_FMAXIMUM_MAG_NUMF128_H

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

#ifdef LIBC_TYPES_HAS_FLOAT128

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

namespace LIBC_NAMESPACE_DECL {
namespace shared {

using math::fmaximum_mag_numf128;

} // namespace shared
} // namespace LIBC_NAMESPACE_DECL

#endif // LIBC_TYPES_HAS_FLOAT128

#endif // LLVM_LIBC_SHARED_MATH_FMAXIMUM_MAG_NUMF128_H
+29 −0
Original line number Diff line number Diff line
//===-- Shared fmaximum_mag_numf16 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_NUMF16_H
#define LLVM_LIBC_SHARED_MATH_FMAXIMUM_MAG_NUMF16_H

#include "include/llvm-libc-macros/float16-macros.h"

#ifdef LIBC_TYPES_HAS_FLOAT16

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

namespace LIBC_NAMESPACE_DECL {
namespace shared {

using math::fmaximum_mag_numf16;

} // namespace shared
} // namespace LIBC_NAMESPACE_DECL

#endif // LIBC_TYPES_HAS_FLOAT16

#endif // LLVM_LIBC_SHARED_MATH_FMAXIMUM_MAG_NUMF16_H
+23 −0
Original line number Diff line number Diff line
//===-- Shared fmaximum_mag_numl 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_NUML_H
#define LLVM_LIBC_SHARED_MATH_FMAXIMUM_MAG_NUML_H

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

namespace LIBC_NAMESPACE_DECL {
namespace shared {

using math::fmaximum_mag_numl;

} // namespace shared
} // namespace LIBC_NAMESPACE_DECL

#endif // LLVM_LIBC_SHARED_MATH_FMAXIMUM_MAG_NUML_H
+23 −0
Original line number Diff line number Diff line
//===-- Shared fminimum_mag_num 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_FMINIMUM_MAG_NUM_H
#define LLVM_LIBC_SHARED_MATH_FMINIMUM_MAG_NUM_H

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

namespace LIBC_NAMESPACE_DECL {
namespace shared {

using math::fminimum_mag_num;

} // namespace shared
} // namespace LIBC_NAMESPACE_DECL

#endif // LLVM_LIBC_SHARED_MATH_FMINIMUM_MAG_NUM_H
Loading