|
API Reference Manual
1.48.0
|
ODP compiler hints. More...
#include <odp/visibility_begin.h>#include <odp/visibility_end.h>Go to the source code of this file.
Macros | |
| #define | ODP_NORETURN __attribute__((__noreturn__)) |
| Define a function that does not return. | |
| #define | ODP_WEAK_SYMBOL __attribute__((__weak__)) |
| Define a weak symbol This is primarily useful in defining library functions that can be overridden in user code. | |
| #define | ODP_HOT_CODE __attribute__((__hot__)) |
| Hot code section. | |
| #define | ODP_COLD_CODE __attribute__((__cold__)) |
| Cold code section. | |
| #define | ODP_PRINTF_FORMAT(x, y) __attribute__((format(printf, (x), (y)))) |
| Printf format attribute. | |
| #define | ODP_UNUSED __attribute__((__unused__)) |
| Intentionally unused variables of functions. | |
| #define | odp_likely(x) __builtin_expect(!!(x), 1) |
| Branch likely taken. | |
| #define | odp_unlikely(x) __builtin_expect(!!(x), 0) |
| Branch unlikely taken. | |
ODP compiler hints.
Definition in file spec/hints.h.