NVIDIA DOCA SDK
Data Center on a Chip Framework Documentation
doca_common_defines.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES, ALL RIGHTS RESERVED.
3
*
4
* This software product is a proprietary product of NVIDIA CORPORATION &
5
* AFFILIATES (the "Company") and all right, title, and interest in and to the
6
* software product, including all associated intellectual property rights, are
7
* and shall remain exclusively with the Company.
8
*
9
* This software product is governed by the End User License Agreement
10
* provided with the software product.
11
*
12
*/
13
14
#ifndef DOCA_COMMON_DEFINES_H_
15
#define DOCA_COMMON_DEFINES_H_
16
17
#ifdef __GNUC__
18
#define doca_likely(x) __builtin_expect(!!(x), 1)
19
#define doca_unlikely(x) __builtin_expect(!!(x), 0)
20
#else
21
#define doca_likely(x) (x)
22
#define doca_unlikely(x) (x)
23
#endif
24
25
#endif
/* DOCA_COMMON_DEFINES_H_ */
include
doca_common_defines.h
Generated on Wed Aug 13 2025 09:23:36 for NVIDIA DOCA SDK by
1.9.1