Re: [PATCH v2] net/ark: fix index arithmetic optimization bug

2024-07-17 Thread Ferruh Yigit
On 7/16/2024 10:39 PM, Ed Czeck wrote: > fix for compiler optimizer error using int32_t. > (a - b) > 0 can behave differently under optimization > at values near max and min bounds. > Hi Ed, Is this compiler optimization error, or can it be related to the undefined behavior of signed integer over

[PATCH v2] net/ark: fix index arithmetic optimization bug

2024-07-16 Thread Ed Czeck
fix for compiler optimizer error using int32_t. (a - b) > 0 can behave differently under optimization at values near max and min bounds. This patch replaces int32_t with uint32_t except for necessary casts. Fixes: 9ee9e0d3b85e ("net/ark: update to reflect FPGA updates") Cc: sta...@dpdk.org Signed