]> granicus.if.org Git - clang/commit
[CUDA] Declare our __device__ math functions in the same inline namespace as our...
authorJustin Lebar <jlebar@google.com>
Sat, 8 Oct 2016 22:16:03 +0000 (22:16 +0000)
committerJustin Lebar <jlebar@google.com>
Sat, 8 Oct 2016 22:16:03 +0000 (22:16 +0000)
commit470ddb8edf2d3a24a7b6165bb5cb3f6272de2f5f
tree68f0f878572ea54bbbbe82578e6ec1dd7f1da3d1
parent985220f468a1bc5f8fd9ffd283427b8a486ec2bf
[CUDA] Declare our __device__ math functions in the same inline namespace as our standard library.

Summary:
Currently we declare our inline __device__ math functions in namespace
std.  But libstdc++ and libc++ declare these functions in an inline
namespace inside namespace std.  We need to match this because, in a
later patch, we want to get e.g. <complex> to use our device overloads,
and it only will if those overloads are in the right inline namespace.

Reviewers: tra

Subscribers: cfe-commits, jhen

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@283678 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Headers/__clang_cuda_cmath.h
lib/Headers/__clang_cuda_math_forward_declares.h