add AI_SWAP4 for big endian architecture