summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2021-10-27 18:19:43 +0200
committerFlorin Coras <florin.coras@gmail.com>2021-11-02 04:44:06 +0000
commit31ee6f5d3069c23b4a11005b95ee3744b9720a17 (patch)
tree4e0b0a9504b8cb527ba739d9026c3f8fde8264ae /src/plugins
parent21aa673412b2abc1e113dae08e33eb8992308862 (diff)
vppinfra: add CLIB_ASSUME() macro
This macro privides a way to tell compiler that it is safe to assume that specified expression is true so it can optimize code accordingly. i.e. CLIB_ASSUME (n < 3); while (n) { /* ... */ } Will tell compiler that n is never going to be >= 3 so instead of creating loop it will just unroll loop 2 times. Type: improvement Change-Id: I718a9b95ff7980d7ac68eb9a88357a4ab6eee74a Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins')
0 files changed, 0 insertions, 0 deletions