Lines Matching refs:__c
273 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 complex(const complex<_Xp>& __c)
274 : __re_(__c.real()), __im_(__c.imag()) {}
307 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex& operator=(const complex<_Xp>& __c) {
308 __re_ = __c.real();
309 __im_ = __c.imag();
313 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex& operator+=(const complex<_Xp>& __c) {
314 __re_ += __c.real();
315 __im_ += __c.imag();
319 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex& operator-=(const complex<_Xp>& __c) {
320 __re_ -= __c.real();
321 __im_ -= __c.imag();
325 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex& operator*=(const complex<_Xp>& __c) {
326 *this = *this * complex(__c.real(), __c.imag());
330 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex& operator/=(const complex<_Xp>& __c) {
331 *this = *this / complex(__c.real(), __c.imag());
350 _LIBCPP_HIDE_FROM_ABI explicit _LIBCPP_CONSTEXPR complex(const complex<double>& __c);
351 _LIBCPP_HIDE_FROM_ABI explicit _LIBCPP_CONSTEXPR complex(const complex<long double>& __c);
384 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex& operator=(const complex<_Xp>& __c) {
385 __re_ = __c.real();
386 __im_ = __c.imag();
390 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex& operator+=(const complex<_Xp>& __c) {
391 __re_ += __c.real();
392 __im_ += __c.imag();
396 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex& operator-=(const complex<_Xp>& __c) {
397 __re_ -= __c.real();
398 __im_ -= __c.imag();
402 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex& operator*=(const complex<_Xp>& __c) {
403 *this = *this * complex(__c.real(), __c.imag());
407 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex& operator/=(const complex<_Xp>& __c) {
408 *this = *this / complex(__c.real(), __c.imag());
422 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR complex(const complex<float>& __c);
423 _LIBCPP_HIDE_FROM_ABI explicit _LIBCPP_CONSTEXPR complex(const complex<long double>& __c);
456 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex& operator=(const complex<_Xp>& __c) {
457 __re_ = __c.real();
458 __im_ = __c.imag();
462 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex& operator+=(const complex<_Xp>& __c) {
463 __re_ += __c.real();
464 __im_ += __c.imag();
468 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex& operator-=(const complex<_Xp>& __c) {
469 __re_ -= __c.real();
470 __im_ -= __c.imag();
474 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex& operator*=(const complex<_Xp>& __c) {
475 *this = *this * complex(__c.real(), __c.imag());
479 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex& operator/=(const complex<_Xp>& __c) {
480 *this = *this / complex(__c.real(), __c.imag());
495 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR complex(const complex<float>& __c);
496 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR complex(const complex<double>& __c);
529 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex& operator=(const complex<_Xp>& __c) {
530 __re_ = __c.real();
531 __im_ = __c.imag();
535 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex& operator+=(const complex<_Xp>& __c) {
536 __re_ += __c.real();
537 __im_ += __c.imag();
541 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex& operator-=(const complex<_Xp>& __c) {
542 __re_ -= __c.real();
543 __im_ -= __c.imag();
547 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex& operator*=(const complex<_Xp>& __c) {
548 *this = *this * complex(__c.real(), __c.imag());
552 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex& operator/=(const complex<_Xp>& __c) {
553 *this = *this / complex(__c.real(), __c.imag());
558 …P_CONSTEXPR complex<float>::complex(const complex<double>& __c) : __re_(__c.real()), __im_(__c.ima…
560 inline _LIBCPP_CONSTEXPR complex<float>::complex(const complex<long double>& __c)
561 : __re_(__c.real()), __im_(__c.imag()) {}
563 …P_CONSTEXPR complex<double>::complex(const complex<float>& __c) : __re_(__c.real()), __im_(__c.ima…
565 inline _LIBCPP_CONSTEXPR complex<double>::complex(const complex<long double>& __c)
566 : __re_(__c.real()), __im_(__c.imag()) {}
568 inline _LIBCPP_CONSTEXPR complex<long double>::complex(const complex<float>& __c)
569 : __re_(__c.real()), __im_(__c.imag()) {}
571 inline _LIBCPP_CONSTEXPR complex<long double>::complex(const complex<double>& __c)
572 : __re_(__c.real()), __im_(__c.imag()) {}
629 _Tp __c = __w.real();
635 bool __w_zero = __c == _Tp(0) && __d == _Tp(0);
637 bool __w_inf = std::__constexpr_isinf(__c) || std::__constexpr_isinf(__d);
642 !__w_inf && ((std::__constexpr_isnan(__c) && std::__constexpr_isnan(__d)) ||
643 … (std::__constexpr_isnan(__c) && __d == _Tp(0)) || (__c == _Tp(0) && std::__constexpr_isnan(__d)));
654 …bool __w_nonzero_nan = !__w_inf && !__w_nan && (std::__constexpr_isnan(__c) || std::__constexpr_is…
660 _Tp __ac = __a * __c;
663 _Tp __bc = __b * __c;
671 if (std::__constexpr_isnan(__c))
672 __c = std::__constexpr_copysign(_Tp(0), __c);
677 if (std::__constexpr_isinf(__c) || std::__constexpr_isinf(__d)) {
678 __c = std::__constexpr_copysign(std::__constexpr_isinf(__c) ? _Tp(1) : _Tp(0), __c);
692 if (std::__constexpr_isnan(__c))
693 __c = std::__constexpr_copysign(_Tp(0), __c);
699 __x = _Tp(INFINITY) * (__a * __c - __b * __d);
700 __y = _Tp(INFINITY) * (__a * __d + __b * __c);
728 _Tp __c = __w.real();
730 …_Tp __logbw = std::__constexpr_logb(std::__constexpr_fmax(std::__constexpr_fabs(__c), std::__cons…
733 __c = std::__constexpr_scalbn(__c, -__ilogbw);
740 bool __w_zero = __c == _Tp(0) && __d == _Tp(0);
742 bool __w_inf = std::__constexpr_isinf(__c) || std::__constexpr_isinf(__d);
747 !__w_inf && ((std::__constexpr_isnan(__c) && std::__constexpr_isnan(__d)) ||
748 … (std::__constexpr_isnan(__c) && __d == _Tp(0)) || (__c == _Tp(0) && std::__constexpr_isnan(__d)));
753 …bool __w_nonzero_nan = !__w_inf && !__w_nan && (std::__constexpr_isnan(__c) || std::__constexpr_is…
774 _Tp __denom = __c * __c + __d * __d;
775 _Tp __x = std::__constexpr_scalbn((__a * __c + __b * __d) / __denom, -__ilogbw);
776 _Tp __y = std::__constexpr_scalbn((__b * __c - __a * __d) / __denom, -__ilogbw);
779 __x = std::__constexpr_copysign(_Tp(INFINITY), __c) * __a;
780 __y = std::__constexpr_copysign(_Tp(INFINITY), __c) * __b;
781 … ((std::__constexpr_isinf(__a) || std::__constexpr_isinf(__b)) && std::__constexpr_isfinite(__c) &&
785 __x = _Tp(INFINITY) * (__a * __c + __b * __d);
786 __y = _Tp(INFINITY) * (__b * __c - __a * __d);
789 __c = std::__constexpr_copysign(std::__constexpr_isinf(__c) ? _Tp(1) : _Tp(0), __c);
791 __x = _Tp(0) * (__a * __c + __b * __d);
792 __y = _Tp(0) * (__b * __c - __a * __d);
880 inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 _Tp real(const complex<_Tp>& __c) {
881 return __c.real();
893 inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 _Tp imag(const complex<_Tp>& __c) {
894 return __c.imag();
906 inline _LIBCPP_HIDE_FROM_ABI _Tp abs(const complex<_Tp>& __c) {
907 return std::hypot(__c.real(), __c.imag());
913 inline _LIBCPP_HIDE_FROM_ABI _Tp arg(const complex<_Tp>& __c) {
914 return std::atan2(__c.imag(), __c.real());
935 inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 _Tp norm(const complex<_Tp>& __c) {
936 if (std::__constexpr_isinf(__c.real()))
937 return std::abs(__c.real());
938 if (std::__constexpr_isinf(__c.imag()))
939 return std::abs(__c.imag());
940 return __c.real() * __c.real() + __c.imag() * __c.imag();
953 …ne _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex<_Tp> conj(const complex<_Tp>& __c) {
954 return complex<_Tp>(__c.real(), -__c.imag());
967 inline _LIBCPP_HIDE_FROM_ABI complex<_Tp> proj(const complex<_Tp>& __c) {
968 complex<_Tp> __r = __c;
969 if (std::__constexpr_isinf(__c.real()) || std::__constexpr_isinf(__c.imag()))
970 __r = complex<_Tp>(INFINITY, std::copysign(_Tp(0), __c.imag()));
1308 _CharT __c = __is.peek();
1309 if (__c == _CharT(',')) {
1315 __c = __is.peek();
1316 if (__c == _CharT(')')) {
1323 } else if (__c == _CharT(')')) {