Go to file
David Marchand 30a0df64aa test/common: fix log2 check
We recently started to get random failures on the common_autotest ut with
clang on Ubuntu 16.04.6.

Example: https://travis-ci.com/DPDK/dpdk/jobs/263177424

Wrong rte_log2_u64(0) val 0, expected ffffffff
Test Failed

The ut passes 0 to log2() to get an expected value.

Quoting log2 / log(3) manual:
If x is zero, then a pole error occurs, and the functions return
-HUGE_VAL, -HUGE_VALF, or -HUGE_VALL, respectively.

rte_log2_uXX helpers handle 0 as a special value and return 0.
Let's have dedicated tests for this case.

Fixes: 05c4345ef5 ("test: add unit test for integer log2 function")
Cc: stable@dpdk.org

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Aaron Conole <aconole@redhat.com>
2019-12-20 15:05:41 +01:00
.ci ci: add minimal check on testpmd 2019-11-27 00:00:24 +01:00
app test/common: fix log2 check 2019-12-20 15:05:41 +01:00
buildtools devtools: move ABI scripts from buildtools 2019-11-28 16:36:11 +01:00
config build: fix soname info for 19.11 compatibility 2019-12-19 16:18:21 +01:00
devtools devtools: fix debug build test 2019-12-16 16:27:50 +01:00
doc doc: fix build with python 3.8 2019-12-12 23:18:10 +01:00
drivers build: fix soname info for 19.11 compatibility 2019-12-19 16:18:21 +01:00
examples build: fix soname info for 19.11 compatibility 2019-12-19 16:18:21 +01:00
kernel kni: fix build with Linux 4.9.x 2019-11-28 14:48:24 +01:00
lib test/common: fix log2 check 2019-12-20 15:05:41 +01:00
license remove blank lines at end of file 2019-11-26 00:12:08 +01:00
mk build: fix soname info for 19.11 compatibility 2019-12-19 16:18:21 +01:00
usertools usertools: fix typo in SPDX tag of telemetry script 2019-11-28 03:12:55 +01:00
.gitattributes improve git diff 2016-11-13 15:25:12 +01:00
.gitignore git: ignore more build directories 2019-11-27 23:16:27 +01:00
.travis.yml config: add pkgconfig for arm64 2019-11-28 23:03:52 +01:00
ABI_VERSION build: fix soname info for 19.11 compatibility 2019-12-19 16:18:21 +01:00
GNUmakefile test: move to app directory 2019-02-26 15:29:27 +01:00
MAINTAINERS devtools: move ABI scripts from buildtools 2019-11-28 16:36:11 +01:00
Makefile remove blank lines at end of file 2019-11-26 00:12:08 +01:00
meson_options.txt build: change ABI versioning to global 2019-11-20 23:05:39 +01:00
meson.build build: fix Windows build 2019-11-25 15:07:02 +01:00
README license: introduce SPDX identifiers 2018-01-04 22:41:38 +01:00
VERSION version: 20.02-rc0 2019-12-02 17:59:49 +01:00

DPDK is a set of libraries and drivers for fast packet processing.
It supports many processor architectures and both FreeBSD and Linux.

The DPDK uses the Open Source BSD-3-Clause license for the core libraries
and drivers. The kernel components are GPL-2.0 licensed.

Please check the doc directory for release notes,
API documentation, and sample application information.

For questions and usage discussions, subscribe to: users@dpdk.org
Report bugs and issues to the development mailing list: dev@dpdk.org