use [[gnu::...]] attributes

This commit is contained in:
Max Kellermann
2023-03-06 15:57:36 +01:00
parent 3b9aab0684
commit 42f6a0441c
101 changed files with 167 additions and 234 deletions

View File

@@ -50,7 +50,7 @@ static constexpr unsigned DECODERDELAY = 529;
static constexpr Domain mad_domain("mad");
gcc_const
[[gnu::const]]
static SongTime
ToSongTime(mad_timer_t t) noexcept
{
@@ -135,10 +135,10 @@ private:
void ParseId3(size_t tagsize, Tag *tag) noexcept;
MadDecoderAction DecodeNextFrame(bool skip, Tag *tag) noexcept;
[[nodiscard]] gcc_pure
[[nodiscard]] [[gnu::pure]]
offset_type ThisFrameOffset() const noexcept;
[[nodiscard]] gcc_pure
[[nodiscard]] [[gnu::pure]]
offset_type RestIncludingThisFrame() const noexcept;
/**
@@ -157,7 +157,7 @@ private:
times = new mad_timer_t[max_frames];
}
[[nodiscard]] gcc_pure
[[nodiscard]] [[gnu::pure]]
size_t TimeToFrame(SongTime t) const noexcept;
/**