Codechange: Use attribute syntax for debug_inline, so clang-format understands it.

This commit is contained in:
frosch
2025-12-07 13:10:40 +00:00
committed by Peter Nelson
parent 2fc877c2ec
commit 4339bf3dc7
10 changed files with 52 additions and 52 deletions
+2 -2
View File
@@ -29,7 +29,7 @@
* @return The selected bits, aligned to a LSB.
*/
template <typename T>
debug_inline constexpr static uint GB(const T x, const uint8_t s, const uint8_t n)
[[debug_inline]] inline constexpr static uint GB(const T x, const uint8_t s, const uint8_t n)
{
return (x >> s) & (((T)1U << n) - 1);
}
@@ -100,7 +100,7 @@ constexpr T AB(T &x, const uint8_t s, const uint8_t n, const U i)
* @return True if the bit is set, false else.
*/
template <typename T>
debug_inline constexpr bool HasBit(const T x, const uint8_t y)
[[debug_inline]] inline constexpr bool HasBit(const T x, const uint8_t y)
{
return (x & ((T)1U << y)) != 0;
}