Thread (141 messages) 141 messages, 9 authors, 2024-02-17

Re: [dpdk-dev] [PATCH v5 3/6] net/axgbe: use common rte bit operation APIs instead

From: Thomas Monjalon <hidden>
Date: 2019-12-02 09:12:37

02/12/2019 07:09, Gavin Hu (Arm Technology China):
Hi Bruce, Thomas,

This series of patches was reported a compilation issue[1] on 32bit Ubuntu. 
On mainstream 64-bit OS,  "unsigned long" is 64-bit in size and we uses the 64-bit variant of APIs. But the 32-bit OS expect 32-bit 'unsigned long' arguments. 
This is where the error happens. 
Please could you be more specific? What is the exact error?
My question is how 32-bit OSes shall we support, put another way, can we ignore this compilation issue? 
If we still need to care, how about making 'obsolete' of 'unsigned long' and use 'uint32' instead to be multi-OS friendly? 
Which unsigned long?
If it is in the (not merged) bit API, it can still be changed no?


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help