Avoid use of inline asm for 64bits support

Fixed "unsupported inline asm: input with type 'unsigned long' matching output with type 'unsigned int'" for 64 bits architectures