[libc-commits] [libc] 72df546 - [libc][math] Remove constexpr from bfloat16 comparison operations (#150227)
via libc-commits
libc-commits at lists.llvm.org
Wed Jul 23 07:23:29 PDT 2025
Author: Krishna Pandey
Date: 2025-07-23T16:23:25+02:00
New Revision: 72df5464eda2c0986200a4bfb30e086ee59fe1d6
URL: https://github.com/llvm/llvm-project/commit/72df5464eda2c0986200a4bfb30e086ee59fe1d6
DIFF: https://github.com/llvm/llvm-project/commit/72df5464eda2c0986200a4bfb30e086ee59fe1d6.diff
LOG: [libc][math] Remove constexpr from bfloat16 comparison operations (#150227)
Signed-off-by: Krishna Pandey <kpandey81930 at gmail.com>
Added:
Modified:
libc/src/__support/FPUtil/bfloat16.h
Removed:
################################################################################
diff --git a/libc/src/__support/FPUtil/bfloat16.h b/libc/src/__support/FPUtil/bfloat16.h
index 05edbba048cb7..84a0dca911691 100644
--- a/libc/src/__support/FPUtil/bfloat16.h
+++ b/libc/src/__support/FPUtil/bfloat16.h
@@ -59,27 +59,27 @@ struct BFloat16 {
return cpp::bit_cast<float>(x_bits);
}
- LIBC_INLINE constexpr bool operator==(BFloat16 other) const {
+ LIBC_INLINE bool operator==(BFloat16 other) const {
return fputil::equals(*this, other);
}
- LIBC_INLINE constexpr bool operator!=(BFloat16 other) const {
+ LIBC_INLINE bool operator!=(BFloat16 other) const {
return !fputil::equals(*this, other);
}
- LIBC_INLINE constexpr bool operator<(BFloat16 other) const {
+ LIBC_INLINE bool operator<(BFloat16 other) const {
return fputil::less_than(*this, other);
}
- LIBC_INLINE constexpr bool operator<=(BFloat16 other) const {
+ LIBC_INLINE bool operator<=(BFloat16 other) const {
return fputil::less_than_or_equals(*this, other);
}
- LIBC_INLINE constexpr bool operator>(BFloat16 other) const {
+ LIBC_INLINE bool operator>(BFloat16 other) const {
return fputil::greater_than(*this, other);
}
- LIBC_INLINE constexpr bool operator>=(BFloat16 other) const {
+ LIBC_INLINE bool operator>=(BFloat16 other) const {
return fputil::greater_than_or_equals(*this, other);
}
}; // struct BFloat16
More information about the libc-commits
mailing list