|
|
|
|
|
by cpeterso
971 days ago
|
|
> This is standardizing vendor-specific attributes Except the standard’s likely and unlikely attributes invented new syntax that is not drop-in compatible with clang’s and gcc’s attributes. Where clang and gcc would use: if (__builtin_expect(x > 0, 1)) { … }
the standard uses: if (x > 0) [[likely]] { … }
|
|