>> > + if (flags & MSG_PEEK && *off >= 0) { >> > + peek_at_off = true; >> > + _off = *off; >> > + } >> >> I think that unlikely() will fit the above condition > Sounds good.
Doesn't the compiler implicitly mark branches as unlikely if they do not have an else clause?