[Licai Guo] change part of asm code to support 64 bit