[libc-commits] [libc] [libc] Make ceilf128 use the emulated float128 type (PR #207735)
via libc-commits
libc-commits at lists.llvm.org
Fri Aug 14 13:10:49 PDT 2026
================
@@ -9,21 +9,16 @@
#ifndef LLVM_LIBC_SRC___SUPPORT_MATH_CEILF128_H
#define LLVM_LIBC_SRC___SUPPORT_MATH_CEILF128_H
-#include "include/llvm-libc-types/float128.h"
-
-#ifdef LIBC_TYPES_HAS_NATIVE_FLOAT128
-
#include "src/__support/FPUtil/NearestIntegerOperations.h"
+#include "src/__support/FPUtil/float128.h"
#include "src/__support/macros/config.h"
namespace LIBC_NAMESPACE_DECL {
namespace math {
+using LIBC_NAMESPACE::fputil::Float128;
-LIBC_INLINE constexpr float128 ceilf128(float128 x) { return fputil::ceil(x); }
-
+LIBC_INLINE constexpr Float128 ceilf128(Float128 x) { return fputil::ceil(x); }
} // namespace math
----------------
overmighty wrote:
Nit: style.
```suggestion
LIBC_INLINE constexpr Float128 ceilf128(Float128 x) { return fputil::ceil(x); }
} // namespace math
```
https://github.com/llvm/llvm-project/pull/207735
More information about the libc-commits
mailing list