rurban / safeclib

safec libc extension with all C11 Annex K functions
https://rurban.github.io/safeclib/
Other
329 stars 64 forks source link

Argument confusion #106

Closed arrowten closed 2 years ago

arrowten commented 2 years ago

In the "safeclib_private.h", there are typedefs '_expect', 'likely' and 'unlikely'. I did not get why the second argument in each of them was for. Can you explain?

rurban commented 2 years ago

No typedefs, just the usual __builtin_expect macros. As everywhere. See the docs of __builtin_expect