Better way to handle 64 and 32 bits architecture