[CUDA] Remove implementations of nexttoward.
authorJustin Lebar <jlebar@google.com>
Fri, 17 Nov 2017 01:15:43 +0000 (01:15 +0000)
committerJustin Lebar <jlebar@google.com>
Fri, 17 Nov 2017 01:15:43 +0000 (01:15 +0000)
commit370c766e407ae1b44e568d55bc1f2a6aa1b12aeb
tree00b08ff60acd1ce5c22d6951a064cd0d184de52f
parent5a440d323a5baa51b6b2fa569ac14e96fe65312e
[CUDA] Remove implementations of nexttoward.

Summary:
__builtin_nexttoward lowers to a libcall, e.g. nexttowardf(), that CUDA
does not have.

Rather than try to implement it, we simply remove these functions --
nvcc doesn't support them either, and nextafter, which does work, does
essentially the same thing on GPUs, because GPUs don't have long double.

Reviewers: tra

Subscribers: cfe-commits, sanjoy

Differential Revision: https://reviews.llvm.org/D40152

llvm-svn: 318494
clang/lib/Headers/__clang_cuda_cmath.h
clang/lib/Headers/__clang_cuda_math_forward_declares.h