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

[libc][math] Refactor scalbln-scalbn-ldexp family to header-only (#195423)

Refactors the scalbln-scalbn-ldexp math family to be header-only.

part of: #147386

Target Functions:
  - ldexp
  - ldexpbf16
  - ldexpl
  - scalbln
  - scalblnbf16
  - scalblnf
  - scalblnf128
  - scalblnf16
  - scalblnl
  - scalbn
  - scalbnbf16
  - scalbnf
  - scalbnf128
  - scalbnf16
  - scalbnl
parent 39d12034
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -272,9 +272,12 @@
#include "math/ilogbf128.h"
#include "math/ilogbf16.h"
#include "math/ilogbl.h"
#include "math/ldexp.h"
#include "math/ldexpbf16.h"
#include "math/ldexpf.h"
#include "math/ldexpf128.h"
#include "math/ldexpf16.h"
#include "math/ldexpl.h"
#include "math/llogb.h"
#include "math/llogbbf16.h"
#include "math/llogbf.h"
@@ -346,6 +349,18 @@
#include "math/remquol.h"
#include "math/rsqrtf.h"
#include "math/rsqrtf16.h"
#include "math/scalbln.h"
#include "math/scalblnbf16.h"
#include "math/scalblnf.h"
#include "math/scalblnf128.h"
#include "math/scalblnf16.h"
#include "math/scalblnl.h"
#include "math/scalbn.h"
#include "math/scalbnbf16.h"
#include "math/scalbnf.h"
#include "math/scalbnf128.h"
#include "math/scalbnf16.h"
#include "math/scalbnl.h"
#include "math/setpayload.h"
#include "math/setpayloadbf16.h"
#include "math/setpayloadf.h"
+23 −0
Original line number Diff line number Diff line
//===-- Shared ldexp 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_LDEXP_H
#define LLVM_LIBC_SHARED_MATH_LDEXP_H

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

namespace LIBC_NAMESPACE_DECL {
namespace shared {

using math::ldexp;

} // namespace shared
} // namespace LIBC_NAMESPACE_DECL

#endif // LLVM_LIBC_SHARED_MATH_LDEXP_H
+23 −0
Original line number Diff line number Diff line
//===-- Shared ldexpbf16 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_LDEXPBF16_H
#define LLVM_LIBC_SHARED_MATH_LDEXPBF16_H

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

namespace LIBC_NAMESPACE_DECL {
namespace shared {

using math::ldexpbf16;

} // namespace shared
} // namespace LIBC_NAMESPACE_DECL

#endif // LLVM_LIBC_SHARED_MATH_LDEXPBF16_H
+23 −0
Original line number Diff line number Diff line
//===-- Shared ldexpl 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_LDEXPL_H
#define LLVM_LIBC_SHARED_MATH_LDEXPL_H

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

namespace LIBC_NAMESPACE_DECL {
namespace shared {

using math::ldexpl;

} // namespace shared
} // namespace LIBC_NAMESPACE_DECL

#endif // LLVM_LIBC_SHARED_MATH_LDEXPL_H
+23 −0
Original line number Diff line number Diff line
//===-- Shared scalbln 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_SCALBLN_H
#define LLVM_LIBC_SHARED_MATH_SCALBLN_H

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

namespace LIBC_NAMESPACE_DECL {
namespace shared {

using math::scalbln;

} // namespace shared
} // namespace LIBC_NAMESPACE_DECL

#endif // LLVM_LIBC_SHARED_MATH_SCALBLN_H
Loading