better logs

This commit is contained in:
2026-05-18 23:00:43 +02:00
parent eee9fcfb17
commit c2e22fb742
2 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -11,23 +11,23 @@ using s16 = int16_t;
using s32 = int32_t;
using s64 = int64_t;
template <typename T, size_t bit>
template <typename T, std::size_t bit>
static constexpr bool is_bit_set(const T &val) {
return val & (1 << bit);
}
template <typename T, size_t bit>
template <typename T, std::size_t bit>
static constexpr void set_bit(T &val) {
val |= 1 << bit;
}
template <typename T>
inline bool is_bit_set(const T &val, const size_t &bit) {
inline bool is_bit_set(const T &val, const std::size_t &bit) {
return val & (1 << bit);
}
template <typename T>
inline void set_bit(T &val, const size_t &bit) {
inline void set_bit(T &val, const std::size_t &bit) {
val |= 1 << bit;
}
} // namespace ircolib