Skip to content

Commit 72df546

Browse files
authored
[libc][math] Remove constexpr from bfloat16 comparison operations (#150227)
Signed-off-by: Krishna Pandey <[email protected]>
1 parent c113036 commit 72df546

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

libc/src/__support/FPUtil/bfloat16.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,27 +59,27 @@ struct BFloat16 {
5959
return cpp::bit_cast<float>(x_bits);
6060
}
6161

62-
LIBC_INLINE constexpr bool operator==(BFloat16 other) const {
62+
LIBC_INLINE bool operator==(BFloat16 other) const {
6363
return fputil::equals(*this, other);
6464
}
6565

66-
LIBC_INLINE constexpr bool operator!=(BFloat16 other) const {
66+
LIBC_INLINE bool operator!=(BFloat16 other) const {
6767
return !fputil::equals(*this, other);
6868
}
6969

70-
LIBC_INLINE constexpr bool operator<(BFloat16 other) const {
70+
LIBC_INLINE bool operator<(BFloat16 other) const {
7171
return fputil::less_than(*this, other);
7272
}
7373

74-
LIBC_INLINE constexpr bool operator<=(BFloat16 other) const {
74+
LIBC_INLINE bool operator<=(BFloat16 other) const {
7575
return fputil::less_than_or_equals(*this, other);
7676
}
7777

78-
LIBC_INLINE constexpr bool operator>(BFloat16 other) const {
78+
LIBC_INLINE bool operator>(BFloat16 other) const {
7979
return fputil::greater_than(*this, other);
8080
}
8181

82-
LIBC_INLINE constexpr bool operator>=(BFloat16 other) const {
82+
LIBC_INLINE bool operator>=(BFloat16 other) const {
8383
return fputil::greater_than_or_equals(*this, other);
8484
}
8585
}; // struct BFloat16

0 commit comments

Comments
 (0)