aboutsummaryrefslogtreecommitdiff
path: root/libc/src
diff options
context:
space:
mode:
authorKrishna Pandey <kpandey81930@gmail.com>2025-07-23 19:53:25 +0530
committerGitHub <noreply@github.com>2025-07-23 16:23:25 +0200
commit72df5464eda2c0986200a4bfb30e086ee59fe1d6 (patch)
tree835c631c6b66ede9ec118a205d4f80d1a3aa5e04 /libc/src
parentc1130360902082e5d11fcf9a6a4ddd5dfc1a8ec9 (diff)
downloadllvm-72df5464eda2c0986200a4bfb30e086ee59fe1d6.zip
llvm-72df5464eda2c0986200a4bfb30e086ee59fe1d6.tar.gz
llvm-72df5464eda2c0986200a4bfb30e086ee59fe1d6.tar.bz2
[libc][math] Remove constexpr from bfloat16 comparison operations (#150227)
Signed-off-by: Krishna Pandey <kpandey81930@gmail.com>
Diffstat (limited to 'libc/src')
-rw-r--r--libc/src/__support/FPUtil/bfloat16.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/libc/src/__support/FPUtil/bfloat16.h b/libc/src/__support/FPUtil/bfloat16.h
index 05edbba..84a0dca 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