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

[libc][math] Refactor ufromfp family to header-only (#195395)



Refactors the ufromfp math family to be header-only.

part of: #147386

Target Functions:
  - ufromfp
  - ufromfpbf16
  - ufromfpf
  - ufromfpf128
  - ufromfpf16
  - ufromfpl
  - ufromfpx
  - ufromfpxbf16
  - ufromfpxf
  - ufromfpxf128
  - ufromfpxf16
  - ufromfpxl

Co-authored-by: default avatarMuhammad Bassiouni <60100307+bassiounix@users.noreply.github.com>
parent 2bc30bde
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -335,5 +335,17 @@
#include "math/tanhf16.h"
#include "math/tanpif.h"
#include "math/tanpif16.h"
#include "math/ufromfp.h"
#include "math/ufromfpbf16.h"
#include "math/ufromfpf.h"
#include "math/ufromfpf128.h"
#include "math/ufromfpf16.h"
#include "math/ufromfpl.h"
#include "math/ufromfpx.h"
#include "math/ufromfpxbf16.h"
#include "math/ufromfpxf.h"
#include "math/ufromfpxf128.h"
#include "math/ufromfpxf16.h"
#include "math/ufromfpxl.h"

#endif // LLVM_LIBC_SHARED_MATH_H
+23 −0
Original line number Diff line number Diff line
//===-- Shared ufromfp 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_UFROMFP_H
#define LLVM_LIBC_SHARED_MATH_UFROMFP_H

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

namespace LIBC_NAMESPACE_DECL {
namespace shared {

using math::ufromfp;

} // namespace shared
} // namespace LIBC_NAMESPACE_DECL

#endif // LLVM_LIBC_SHARED_MATH_UFROMFP_H
+23 −0
Original line number Diff line number Diff line
//===-- Shared ufromfpbf16 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_UFROMFPBF16_H
#define LLVM_LIBC_SHARED_MATH_UFROMFPBF16_H

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

namespace LIBC_NAMESPACE_DECL {
namespace shared {

using math::ufromfpbf16;

} // namespace shared
} // namespace LIBC_NAMESPACE_DECL

#endif // LLVM_LIBC_SHARED_MATH_UFROMFPBF16_H
+23 −0
Original line number Diff line number Diff line
//===-- Shared ufromfpf 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_UFROMFPF_H
#define LLVM_LIBC_SHARED_MATH_UFROMFPF_H

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

namespace LIBC_NAMESPACE_DECL {
namespace shared {

using math::ufromfpf;

} // namespace shared
} // namespace LIBC_NAMESPACE_DECL

#endif // LLVM_LIBC_SHARED_MATH_UFROMFPF_H
+29 −0
Original line number Diff line number Diff line
//===-- Shared ufromfpf128 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_UFROMFPF128_H
#define LLVM_LIBC_SHARED_MATH_UFROMFPF128_H

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

#ifdef LIBC_TYPES_HAS_FLOAT128

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

namespace LIBC_NAMESPACE_DECL {
namespace shared {

using math::ufromfpf128;

} // namespace shared
} // namespace LIBC_NAMESPACE_DECL

#endif // LIBC_TYPES_HAS_FLOAT128

#endif // LLVM_LIBC_SHARED_MATH_UFROMFPF128_H
Loading