Lines Matching refs:__c
270 complex(const complex<_Xp>& __c)
271 : __re_(__c.real()), __im_(__c.imag()) {}
286 template<class _Xp> _LIBCPP_INLINE_VISIBILITY complex& operator= (const complex<_Xp>& __c)
288 __re_ = __c.real();
289 __im_ = __c.imag();
292 template<class _Xp> _LIBCPP_INLINE_VISIBILITY complex& operator+=(const complex<_Xp>& __c)
294 __re_ += __c.real();
295 __im_ += __c.imag();
298 template<class _Xp> _LIBCPP_INLINE_VISIBILITY complex& operator-=(const complex<_Xp>& __c)
300 __re_ -= __c.real();
301 __im_ -= __c.imag();
304 template<class _Xp> _LIBCPP_INLINE_VISIBILITY complex& operator*=(const complex<_Xp>& __c)
306 *this = *this * complex(__c.real(), __c.imag());
309 template<class _Xp> _LIBCPP_INLINE_VISIBILITY complex& operator/=(const complex<_Xp>& __c)
311 *this = *this / complex(__c.real(), __c.imag());
330 explicit _LIBCPP_CONSTEXPR complex(const complex<double>& __c);
332 explicit _LIBCPP_CONSTEXPR complex(const complex<long double>& __c);
347 template<class _Xp> _LIBCPP_INLINE_VISIBILITY complex& operator= (const complex<_Xp>& __c)
349 __re_ = __c.real();
350 __im_ = __c.imag();
353 template<class _Xp> _LIBCPP_INLINE_VISIBILITY complex& operator+=(const complex<_Xp>& __c)
355 __re_ += __c.real();
356 __im_ += __c.imag();
359 template<class _Xp> _LIBCPP_INLINE_VISIBILITY complex& operator-=(const complex<_Xp>& __c)
361 __re_ -= __c.real();
362 __im_ -= __c.imag();
365 template<class _Xp> _LIBCPP_INLINE_VISIBILITY complex& operator*=(const complex<_Xp>& __c)
367 *this = *this * complex(__c.real(), __c.imag());
370 template<class _Xp> _LIBCPP_INLINE_VISIBILITY complex& operator/=(const complex<_Xp>& __c)
372 *this = *this / complex(__c.real(), __c.imag());
388 _LIBCPP_CONSTEXPR complex(const complex<float>& __c);
390 explicit _LIBCPP_CONSTEXPR complex(const complex<long double>& __c);
405 template<class _Xp> _LIBCPP_INLINE_VISIBILITY complex& operator= (const complex<_Xp>& __c)
407 __re_ = __c.real();
408 __im_ = __c.imag();
411 template<class _Xp> _LIBCPP_INLINE_VISIBILITY complex& operator+=(const complex<_Xp>& __c)
413 __re_ += __c.real();
414 __im_ += __c.imag();
417 template<class _Xp> _LIBCPP_INLINE_VISIBILITY complex& operator-=(const complex<_Xp>& __c)
419 __re_ -= __c.real();
420 __im_ -= __c.imag();
423 template<class _Xp> _LIBCPP_INLINE_VISIBILITY complex& operator*=(const complex<_Xp>& __c)
425 *this = *this * complex(__c.real(), __c.imag());
428 template<class _Xp> _LIBCPP_INLINE_VISIBILITY complex& operator/=(const complex<_Xp>& __c)
430 *this = *this / complex(__c.real(), __c.imag());
446 _LIBCPP_CONSTEXPR complex(const complex<float>& __c);
448 _LIBCPP_CONSTEXPR complex(const complex<double>& __c);
463 template<class _Xp> _LIBCPP_INLINE_VISIBILITY complex& operator= (const complex<_Xp>& __c)
465 __re_ = __c.real();
466 __im_ = __c.imag();
469 template<class _Xp> _LIBCPP_INLINE_VISIBILITY complex& operator+=(const complex<_Xp>& __c)
471 __re_ += __c.real();
472 __im_ += __c.imag();
475 template<class _Xp> _LIBCPP_INLINE_VISIBILITY complex& operator-=(const complex<_Xp>& __c)
477 __re_ -= __c.real();
478 __im_ -= __c.imag();
481 template<class _Xp> _LIBCPP_INLINE_VISIBILITY complex& operator*=(const complex<_Xp>& __c)
483 *this = *this * complex(__c.real(), __c.imag());
486 template<class _Xp> _LIBCPP_INLINE_VISIBILITY complex& operator/=(const complex<_Xp>& __c)
488 *this = *this / complex(__c.real(), __c.imag());
495 complex<float>::complex(const complex<double>& __c)
496 : __re_(__c.real()), __im_(__c.imag()) {}
500 complex<float>::complex(const complex<long double>& __c)
501 : __re_(__c.real()), __im_(__c.imag()) {}
505 complex<double>::complex(const complex<float>& __c)
506 : __re_(__c.real()), __im_(__c.imag()) {}
510 complex<double>::complex(const complex<long double>& __c)
511 : __re_(__c.real()), __im_(__c.imag()) {}
515 complex<long double>::complex(const complex<float>& __c)
516 : __re_(__c.real()), __im_(__c.imag()) {}
520 complex<long double>::complex(const complex<double>& __c)
521 : __re_(__c.real()), __im_(__c.imag()) {}
591 _Tp __c = __w.real();
593 _Tp __ac = __a * __c;
596 _Tp __bc = __b * __c;
606 if (__libcpp_isnan_or_builtin(__c))
607 __c = copysign(_Tp(0), __c);
612 if (__libcpp_isinf_or_builtin(__c) || __libcpp_isinf_or_builtin(__d))
614 __c = copysign(__libcpp_isinf_or_builtin(__c) ? _Tp(1) : _Tp(0), __c);
629 if (__libcpp_isnan_or_builtin(__c))
630 __c = copysign(_Tp(0), __c);
637 __x = _Tp(INFINITY) * (__a * __c - __b * __d);
638 __y = _Tp(INFINITY) * (__a * __d + __b * __c);
671 _Tp __c = __w.real();
673 _Tp __logbw = logb(fmax(fabs(__c), fabs(__d)));
677 __c = scalbn(__c, -__ilogbw);
680 _Tp __denom = __c * __c + __d * __d;
681 _Tp __x = scalbn((__a * __c + __b * __d) / __denom, -__ilogbw);
682 _Tp __y = scalbn((__b * __c - __a * __d) / __denom, -__ilogbw);
687 __x = copysign(_Tp(INFINITY), __c) * __a;
688 __y = copysign(_Tp(INFINITY), __c) * __b;
690 …in(__a) || __libcpp_isinf_or_builtin(__b)) && __libcpp_isfinite_or_builtin(__c) && __libcpp_isfini…
694 __x = _Tp(INFINITY) * (__a * __c + __b * __d);
695 __y = _Tp(INFINITY) * (__b * __c - __a * __d);
699 __c = copysign(__libcpp_isinf_or_builtin(__c) ? _Tp(1) : _Tp(0), __c);
701 __x = _Tp(0) * (__a * __c + __b * __d);
702 __y = _Tp(0) * (__b * __c - __a * __d);
818 real(const complex<_Tp>& __c)
820 return __c.real();
836 imag(const complex<_Tp>& __c)
838 return __c.imag();
854 abs(const complex<_Tp>& __c)
856 return hypot(__c.real(), __c.imag());
864 arg(const complex<_Tp>& __c)
866 return atan2(__c.imag(), __c.real());
908 norm(const complex<_Tp>& __c)
910 if (__libcpp_isinf_or_builtin(__c.real()))
911 return abs(__c.real());
912 if (__libcpp_isinf_or_builtin(__c.imag()))
913 return abs(__c.imag());
914 return __c.real() * __c.real() + __c.imag() * __c.imag();
931 conj(const complex<_Tp>& __c)
933 return complex<_Tp>(__c.real(), -__c.imag());
952 proj(const complex<_Tp>& __c)
954 complex<_Tp> __r = __c;
955 if (__libcpp_isinf_or_builtin(__c.real()) || __libcpp_isinf_or_builtin(__c.imag()))
956 __r = complex<_Tp>(INFINITY, copysign(_Tp(0), __c.imag()));
1391 _CharT __c = __is.peek();
1392 if (__c == _CharT(','))
1400 __c = __is.peek();
1401 if (__c == _CharT(')'))
1412 else if (__c == _CharT(')'))