Refactored CUDA hp_to_double()