inline optimize for memory_get_addr()