NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
utils.h File Reference

Go to the source code of this file.

Macros

#define MIN(X, Y)   (((X) < (Y)) ? (X) : (Y)) /* Return the minimum value between X and Y */
 
#define MAX(X, Y)   (((X) > (Y)) ? (X) : (Y)) /* Return the maximum value between X and Y */
 
#define likely(x)   __builtin_expect((x), 1)
 
#define unlikely(x)   __builtin_expect((x), 0)
 

Macro Definition Documentation

◆ likely

#define likely (   x)    __builtin_expect((x), 1)

Definition at line 38 of file utils.h.

◆ MAX

#define MAX (   X,
 
)    (((X) > (Y)) ? (X) : (Y)) /* Return the maximum value between X and Y */

Definition at line 34 of file utils.h.

◆ MIN

#define MIN (   X,
 
)    (((X) < (Y)) ? (X) : (Y)) /* Return the minimum value between X and Y */

Definition at line 30 of file utils.h.

◆ unlikely

#define unlikely (   x)    __builtin_expect((x), 0)

Definition at line 42 of file utils.h.