003 File Manager
Current Path:
/usr/src/sys/contrib/dpdk_rte_lpm
usr
/
src
/
sys
/
contrib
/
dpdk_rte_lpm
/
📁
..
📄
dpdk_lpm.c
(10.32 KB)
📄
dpdk_lpm6.c
(12.01 KB)
📄
dpdk_lpm6.h
(2.08 KB)
📄
rte_branch_prediction.h
(846 B)
📄
rte_common.h
(20.46 KB)
📄
rte_debug.h
(1.98 KB)
📄
rte_jhash.h
(9.12 KB)
📄
rte_log.h
(11.48 KB)
📄
rte_lpm.c
(27.24 KB)
📄
rte_lpm.h
(11.08 KB)
📄
rte_lpm6.c
(34.1 KB)
📄
rte_lpm6.h
(5.44 KB)
📄
rte_shim.h
(998 B)
📄
rte_tailq.h
(3.77 KB)
Editing: rte_branch_prediction.h
/* SPDX-License-Identifier: BSD-3-Clause * Copyright(c) 2010-2014 Intel Corporation */ /** * @file * Branch Prediction Helpers in RTE */ #ifndef _RTE_BRANCH_PREDICTION_H_ #define _RTE_BRANCH_PREDICTION_H_ /** * Check if a branch is likely to be taken. * * This compiler builtin allows the developer to indicate if a branch is * likely to be taken. Example: * * if (likely(x > 1)) * do_stuff(); * */ #ifndef likely #define likely(x) __builtin_expect(!!(x), 1) #endif /* likely */ /** * Check if a branch is unlikely to be taken. * * This compiler builtin allows the developer to indicate if a branch is * unlikely to be taken. Example: * * if (unlikely(x < 1)) * do_stuff(); * */ #ifndef unlikely #define unlikely(x) __builtin_expect(!!(x), 0) #endif /* unlikely */ #endif /* _RTE_BRANCH_PREDICTION_H_ */
Upload File
Create Folder