make ptr_hash inline