Re: [dpdk-dev] [PATCH v2] service: fix shifts to operate on 64 bit integers

2017-07-31 Thread Thomas Monjalon
31/07/2017 18:38, Harry van Haaren: > This commit fixes shifts to an integer (1 << shift) which > is assumed to be a 32-bit integer. In this case, the shift is > variable and expected to be valid for 64-bit integers. Given that > the expectation to work with 64 bits exists, we must ensure that > th

[dpdk-dev] [PATCH v2] service: fix shifts to operate on 64 bit integers

2017-07-31 Thread Harry van Haaren
This commit fixes shifts to an integer (1 << shift) which is assumed to be a 32-bit integer. In this case, the shift is variable and expected to be valid for 64-bit integers. Given that the expectation to work with 64 bits exists, we must ensure that the (1 << shift) one in that formula is actually