git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test/common: fix log2 check
[dpdk.git]
/
lib
/
librte_eal
/
common
/
include
/
rte_common.h
diff --git
a/lib/librte_eal/common/include/rte_common.h
b/lib/librte_eal/common/include/rte_common.h
index
459d082
..
c352838
100644
(file)
--- a/
lib/librte_eal/common/include/rte_common.h
+++ b/
lib/librte_eal/common/include/rte_common.h
@@
-538,6
+538,9
@@
rte_bsf32_safe(uint64_t v, uint32_t *pos)
/**
* Return the rounded-up log2 of a integer.
*
/**
* Return the rounded-up log2 of a integer.
*
+ * @note Contrary to the logarithm mathematical operation,
+ * rte_log2_u32(0) == 0 and not -inf.
+ *
* @param v
* The input parameter.
* @return
* @param v
* The input parameter.
* @return
@@
-632,6
+635,9
@@
rte_fls_u64(uint64_t x)
/**
* Return the rounded-up log2 of a 64-bit integer.
*
/**
* Return the rounded-up log2 of a 64-bit integer.
*
+ * @note Contrary to the logarithm mathematical operation,
+ * rte_log2_u64(0) == 0 and not -inf.
+ *
* @param v
* The input parameter.
* @return
* @param v
* The input parameter.
* @return