@@ -256,12 +256,12 @@ template<class T> complex<T> tanh (const complex<T>&);
256
256
#endif // !_LIBCUDACXX_HAS_NO_LOCALIZATION && !_LIBCUDACXX_COMPILER_NVRTC
257
257
258
258
// Compatability helpers for thrust to convert between `std::complex` and `cuda::std::complex`
259
- #if defined(__cuda_std__) && !defined(_LIBCUDACXX_COMPILER_NVRTC) && !defined(_LIBCUDACXX_COMPILER_MSVC)
259
+ #if defined(__cuda_std__) && !defined(_LIBCUDACXX_COMPILER_NVRTC)
260
260
#include < complex>
261
261
262
262
#define _LIBCUDACXX_ACCESS_STD_COMPLEX_REAL (__c ) reinterpret_cast <const _Up (&)[2]>(__c)[0]
263
263
#define _LIBCUDACXX_ACCESS_STD_COMPLEX_IMAG (__c ) reinterpret_cast <const _Up (&)[2]>(__c)[1]
264
- #endif // defined(__cuda_std__) && !defined(_LIBCUDACXX_COMPILER_NVRTC) && !defined(_LIBCUDACXX_COMPILER_MSVC)
264
+ #endif // defined(__cuda_std__) && !defined(_LIBCUDACXX_COMPILER_NVRTC)
265
265
266
266
#ifndef __cuda_std__
267
267
#include < __pragma_push>
@@ -312,7 +312,7 @@ public:
312
312
complex (const complex<_Xp>& __c)
313
313
: __re_ (__c.real ()), __im_ (__c.imag ()) {}
314
314
315
- #if defined(__cuda_std__) && !defined(_LIBCUDACXX_COMPILER_NVRTC) && !defined(_LIBCUDACXX_COMPILER_MSVC)
315
+ #if defined(__cuda_std__) && !defined(_LIBCUDACXX_COMPILER_NVRTC)
316
316
template <class _Up >
317
317
_LIBCUDACXX_INLINE_VISIBILITY
318
318
complex (const ::std::complex<_Up>& __other)
@@ -329,7 +329,7 @@ public:
329
329
330
330
_LIBCUDACXX_HOST _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
331
331
operator ::std::complex<_Tp>() const { return { __re_, __im_ }; }
332
- #endif // defined(__cuda_std__) && !defined(_LIBCUDACXX_COMPILER_NVRTC) && !defined(_LIBCUDACXX_COMPILER_MSVC)
332
+ #endif // defined(__cuda_std__) && !defined(_LIBCUDACXX_COMPILER_NVRTC)
333
333
334
334
_LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX11 value_type real () const {return __re_;}
335
335
_LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX11 value_type imag () const {return __im_;}
@@ -414,7 +414,7 @@ public:
414
414
explicit constexpr complex (const complex<long double >& __c);
415
415
#endif // _LIBCUDACXX_HAS_COMPLEX_LONG_DOUBLE
416
416
417
- #if defined(__cuda_std__) && !defined(_LIBCUDACXX_COMPILER_NVRTC) && !defined(_LIBCUDACXX_COMPILER_MSVC)
417
+ #if defined(__cuda_std__) && !defined(_LIBCUDACXX_COMPILER_NVRTC)
418
418
template <class _Up >
419
419
_LIBCUDACXX_INLINE_VISIBILITY
420
420
complex (const ::std::complex<_Up>& __other)
@@ -431,7 +431,7 @@ public:
431
431
432
432
_LIBCUDACXX_HOST _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
433
433
operator ::std::complex<float >() const { return { __re_, __im_ }; }
434
- #endif // defined(__cuda_std__) && !defined(_LIBCUDACXX_COMPILER_NVRTC) && !defined(_LIBCUDACXX_COMPILER_MSVC)
434
+ #endif // defined(__cuda_std__) && !defined(_LIBCUDACXX_COMPILER_NVRTC)
435
435
436
436
_LIBCUDACXX_INLINE_VISIBILITY constexpr float real () const {return __re_;}
437
437
_LIBCUDACXX_INLINE_VISIBILITY constexpr float imag () const {return __im_;}
@@ -512,7 +512,7 @@ public:
512
512
explicit constexpr complex (const complex<long double >& __c);
513
513
#endif // _LIBCUDACXX_HAS_COMPLEX_LONG_DOUBLE
514
514
515
- #if defined(__cuda_std__) && !defined(_LIBCUDACXX_COMPILER_NVRTC) && !defined(_LIBCUDACXX_COMPILER_MSVC)
515
+ #if defined(__cuda_std__) && !defined(_LIBCUDACXX_COMPILER_NVRTC)
516
516
template <class _Up >
517
517
_LIBCUDACXX_INLINE_VISIBILITY
518
518
complex (const ::std::complex<_Up>& __other)
@@ -529,7 +529,7 @@ public:
529
529
530
530
_LIBCUDACXX_HOST _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
531
531
operator ::std::complex<double >() const { return { __re_, __im_ }; }
532
- #endif // defined(__cuda_std__) && !defined(_LIBCUDACXX_COMPILER_NVRTC) && !defined(_LIBCUDACXX_COMPILER_MSVC)
532
+ #endif // defined(__cuda_std__) && !defined(_LIBCUDACXX_COMPILER_NVRTC)
533
533
534
534
_LIBCUDACXX_INLINE_VISIBILITY constexpr double real () const {return __re_;}
535
535
_LIBCUDACXX_INLINE_VISIBILITY constexpr double imag () const {return __im_;}
@@ -608,7 +608,7 @@ public:
608
608
_LIBCUDACXX_INLINE_VISIBILITY
609
609
constexpr complex (const complex<double >& __c);
610
610
611
- #if defined(__cuda_std__) && !defined(_LIBCUDACXX_COMPILER_NVRTC) && !defined(_LIBCUDACXX_COMPILER_MSVC)
611
+ #if defined(__cuda_std__) && !defined(_LIBCUDACXX_COMPILER_NVRTC)
612
612
template <class _Up >
613
613
_LIBCUDACXX_INLINE_VISIBILITY
614
614
complex (const ::std::complex<_Up>& __other)
@@ -625,7 +625,7 @@ public:
625
625
626
626
_LIBCUDACXX_HOST _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
627
627
operator ::std::complex<long double >() const { return { __re_, __im_ }; }
628
- #endif // defined(__cuda_std__) && !defined(_LIBCUDACXX_COMPILER_NVRTC) && !defined(_LIBCUDACXX_COMPILER_MSVC)
628
+ #endif // defined(__cuda_std__) && !defined(_LIBCUDACXX_COMPILER_NVRTC)
629
629
630
630
_LIBCUDACXX_INLINE_VISIBILITY constexpr long double real () const {return __re_;}
631
631
_LIBCUDACXX_INLINE_VISIBILITY constexpr long double imag () const {return __im_;}
@@ -1051,7 +1051,7 @@ operator==(const _Tp& __x, const complex<_Tp>& __y)
1051
1051
return __x == __y.real () && 0 == __y.imag ();
1052
1052
}
1053
1053
1054
- #if defined(__cuda_std__) && !defined(_LIBCUDACXX_COMPILER_NVRTC) && !defined(_LIBCUDACXX_COMPILER_MSVC)
1054
+ #if defined(__cuda_std__) && !defined(_LIBCUDACXX_COMPILER_NVRTC)
1055
1055
template <class _Tp , class _Up >
1056
1056
inline _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
1057
1057
bool
@@ -1067,7 +1067,7 @@ operator==(const ::std::complex<_Up>& __x, const complex<_Tp>& __y) {
1067
1067
return __y.real () == _LIBCUDACXX_ACCESS_STD_COMPLEX_REAL (__x)
1068
1068
&& __y.imag () == _LIBCUDACXX_ACCESS_STD_COMPLEX_IMAG (__x);
1069
1069
}
1070
- #endif // defined(__cuda_std__) && !defined(_LIBCUDACXX_COMPILER_NVRTC) && !defined(_LIBCUDACXX_COMPILER_MSVC)
1070
+ #endif // defined(__cuda_std__) && !defined(_LIBCUDACXX_COMPILER_NVRTC)
1071
1071
1072
1072
template <class _Tp >
1073
1073
inline _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
@@ -1093,7 +1093,7 @@ operator!=(const _Tp& __x, const complex<_Tp>& __y)
1093
1093
return !(__x == __y);
1094
1094
}
1095
1095
1096
- #if defined(__cuda_std__) && !defined(_LIBCUDACXX_COMPILER_NVRTC) && !defined(_LIBCUDACXX_COMPILER_MSVC)
1096
+ #if defined(__cuda_std__) && !defined(_LIBCUDACXX_COMPILER_NVRTC)
1097
1097
template <class _Tp , class _Up >
1098
1098
inline _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
1099
1099
bool
@@ -1107,7 +1107,7 @@ bool
1107
1107
operator !=(const ::std::complex<_Up>& __x, const complex<_Tp>& __y) {
1108
1108
return !(__x == __y);
1109
1109
}
1110
- #endif // defined(__cuda_std__) && !defined(_LIBCUDACXX_COMPILER_NVRTC) && !defined(_LIBCUDACXX_COMPILER_MSVC)
1110
+ #endif // defined(__cuda_std__) && !defined(_LIBCUDACXX_COMPILER_NVRTC)
1111
1111
1112
1112
// 26.3.7 values:
1113
1113
0 commit comments