Index: External/CUDA/cmath.cu =================================================================== --- External/CUDA/cmath.cu +++ External/CUDA/cmath.cu @@ -88,8 +88,6 @@ __device__ Ambiguous lrint(Ambiguous){ return Ambiguous(); } __device__ Ambiguous lround(Ambiguous){ return Ambiguous(); } __device__ Ambiguous nearbyint(Ambiguous){ return Ambiguous(); } -__device__ Ambiguous nextafter(Ambiguous, Ambiguous){ return Ambiguous(); } -__device__ Ambiguous nexttoward(Ambiguous, Ambiguous){ return Ambiguous(); } __device__ Ambiguous remainder(Ambiguous, Ambiguous){ return Ambiguous(); } __device__ Ambiguous remquo(Ambiguous, Ambiguous, int*){ return Ambiguous(); } __device__ Ambiguous rint(Ambiguous){ return Ambiguous(); } @@ -1372,55 +1370,6 @@ assert(std::nearbyint(1.f) == 1); } -__device__ void test_nextafter() -{ - static_assert((std::is_same::value), ""); - static_assert((std::is_same::value), ""); - static_assert((std::is_same::value), ""); - static_assert((std::is_same::value), ""); - static_assert((std::is_same::value), ""); - static_assert((std::is_same::value), ""); - static_assert((std::is_same::value), ""); - static_assert((std::is_same::value), ""); - static_assert((std::is_same::value), ""); - static_assert((std::is_same::value), ""); - static_assert((std::is_same::value), ""); - static_assert((std::is_same::value), ""); - - // Invoke all our overloads, even if we can't be bothered to check the - // results. - std::nextafter(0, 1); - std::nextafter(0, 1.); - std::nextafter(0, 1.f); - - std::nextafter(0., 1); - std::nextafter(0., 1.); - std::nextafter(0., 1.f); - - std::nextafter(0.f, 1); - std::nextafter(0.f, 1.); - std::nextafter(0.f, 1.f); -} - -__device__ void test_nexttoward() -{ - static_assert((std::is_same::value), ""); - - // Invoke all our overloads, even if we can't be bothered to check the - // results. - std::nexttoward(0, 1); - std::nexttoward(0, 1.); - std::nexttoward(0, 1.f); - - std::nexttoward(0., 1); - std::nexttoward(0., 1.); - std::nexttoward(0., 1.f); - - std::nexttoward(0.f, 1); - std::nexttoward(0.f, 1.); - std::nexttoward(0.f, 1.f); -} - __device__ void test_remainder() { static_assert((std::is_same::value), ""); @@ -1670,8 +1619,6 @@ test_lround(); test_nan(); test_nearbyint(); - test_nextafter(); - test_nexttoward(); test_remainder(); test_remquo(); test_rint(); Index: External/CUDA/math_h.cu =================================================================== --- External/CUDA/math_h.cu +++ External/CUDA/math_h.cu @@ -86,8 +86,6 @@ __device__ Ambiguous lrint(Ambiguous){ return Ambiguous(); } __device__ Ambiguous lround(Ambiguous){ return Ambiguous(); } __device__ Ambiguous nearbyint(Ambiguous){ return Ambiguous(); } -__device__ Ambiguous nextafter(Ambiguous, Ambiguous){ return Ambiguous(); } -__device__ Ambiguous nexttoward(Ambiguous, Ambiguous){ return Ambiguous(); } __device__ Ambiguous remainder(Ambiguous, Ambiguous){ return Ambiguous(); } __device__ Ambiguous remquo(Ambiguous, Ambiguous, int*){ return Ambiguous(); } __device__ Ambiguous rint(Ambiguous){ return Ambiguous(); } @@ -1347,57 +1345,6 @@ assert(nearbyint(1.f) == 1); } -__device__ void test_nextafter() -{ - static_assert((std::is_same::value), ""); - static_assert((std::is_same::value), ""); - static_assert((std::is_same::value), ""); - static_assert((std::is_same::value), ""); - static_assert((std::is_same::value), ""); - static_assert((std::is_same::value), ""); - static_assert((std::is_same::value), ""); - static_assert((std::is_same::value), ""); - static_assert((std::is_same::value), ""); - static_assert((std::is_same::value), ""); - static_assert((std::is_same::value), ""); - static_assert((std::is_same::value), ""); - //assert(nextafter(0,1) == hexfloat(0x1, 0, -1074)); - - // Invoke all our overloads, even if we can't be bothered to check the - // results. - nextafter(0, 1); - nextafter(0, 1.); - nextafter(0, 1.f); - - nextafter(0., 1); - nextafter(0., 1.); - nextafter(0., 1.f); - - nextafter(0.f, 1); - nextafter(0.f, 1.); - nextafter(0.f, 1.f); -} - -__device__ void test_nexttoward() -{ - static_assert((std::is_same::value), ""); - //assert(nexttoward(0, 1) == hexfloat(0x1, 0, -1074)); - - // Invoke all our overloads, even if we can't be bothered to check the - // results. - nexttoward(0, 1); - nexttoward(0, 1.); - nexttoward(0, 1.f); - - nexttoward(0., 1); - nexttoward(0., 1.); - nexttoward(0., 1.f); - - nexttoward(0.f, 1); - nexttoward(0.f, 1.); - nexttoward(0.f, 1.f); -} - __device__ void test_remainder() { static_assert((std::is_same::value), ""); @@ -1647,8 +1594,6 @@ test_lround(); test_nan(); test_nearbyint(); - test_nextafter(); - test_nexttoward(); test_remainder(); test_remquo(); test_rint();