Lines Matching refs:__c
269 complex(const complex<_Xp>& __c)
270 : __re_(__c.real()), __im_(__c.imag()) {}
285 template<class _Xp> _LIBCPP_INLINE_VISIBILITY complex& operator= (const complex<_Xp>& __c)
287 __re_ = __c.real();
288 __im_ = __c.imag();
291 template<class _Xp> _LIBCPP_INLINE_VISIBILITY complex& operator+=(const complex<_Xp>& __c)
293 __re_ += __c.real();
294 __im_ += __c.imag();
297 template<class _Xp> _LIBCPP_INLINE_VISIBILITY complex& operator-=(const complex<_Xp>& __c)
299 __re_ -= __c.real();
300 __im_ -= __c.imag();
303 template<class _Xp> _LIBCPP_INLINE_VISIBILITY complex& operator*=(const complex<_Xp>& __c)
305 *this = *this * complex(__c.real(), __c.imag());
308 template<class _Xp> _LIBCPP_INLINE_VISIBILITY complex& operator/=(const complex<_Xp>& __c)
310 *this = *this / complex(__c.real(), __c.imag());
329 explicit _LIBCPP_CONSTEXPR complex(const complex<double>& __c);
331 explicit _LIBCPP_CONSTEXPR complex(const complex<long double>& __c);
346 template<class _Xp> _LIBCPP_INLINE_VISIBILITY complex& operator= (const complex<_Xp>& __c)
348 __re_ = __c.real();
349 __im_ = __c.imag();
352 template<class _Xp> _LIBCPP_INLINE_VISIBILITY complex& operator+=(const complex<_Xp>& __c)
354 __re_ += __c.real();
355 __im_ += __c.imag();
358 template<class _Xp> _LIBCPP_INLINE_VISIBILITY complex& operator-=(const complex<_Xp>& __c)
360 __re_ -= __c.real();
361 __im_ -= __c.imag();
364 template<class _Xp> _LIBCPP_INLINE_VISIBILITY complex& operator*=(const complex<_Xp>& __c)
366 *this = *this * complex(__c.real(), __c.imag());
369 template<class _Xp> _LIBCPP_INLINE_VISIBILITY complex& operator/=(const complex<_Xp>& __c)
371 *this = *this / complex(__c.real(), __c.imag());
387 _LIBCPP_CONSTEXPR complex(const complex<float>& __c);
389 explicit _LIBCPP_CONSTEXPR complex(const complex<long double>& __c);
404 template<class _Xp> _LIBCPP_INLINE_VISIBILITY complex& operator= (const complex<_Xp>& __c)
406 __re_ = __c.real();
407 __im_ = __c.imag();
410 template<class _Xp> _LIBCPP_INLINE_VISIBILITY complex& operator+=(const complex<_Xp>& __c)
412 __re_ += __c.real();
413 __im_ += __c.imag();
416 template<class _Xp> _LIBCPP_INLINE_VISIBILITY complex& operator-=(const complex<_Xp>& __c)
418 __re_ -= __c.real();
419 __im_ -= __c.imag();
422 template<class _Xp> _LIBCPP_INLINE_VISIBILITY complex& operator*=(const complex<_Xp>& __c)
424 *this = *this * complex(__c.real(), __c.imag());
427 template<class _Xp> _LIBCPP_INLINE_VISIBILITY complex& operator/=(const complex<_Xp>& __c)
429 *this = *this / complex(__c.real(), __c.imag());
445 _LIBCPP_CONSTEXPR complex(const complex<float>& __c);
447 _LIBCPP_CONSTEXPR complex(const complex<double>& __c);
462 template<class _Xp> _LIBCPP_INLINE_VISIBILITY complex& operator= (const complex<_Xp>& __c)
464 __re_ = __c.real();
465 __im_ = __c.imag();
468 template<class _Xp> _LIBCPP_INLINE_VISIBILITY complex& operator+=(const complex<_Xp>& __c)
470 __re_ += __c.real();
471 __im_ += __c.imag();
474 template<class _Xp> _LIBCPP_INLINE_VISIBILITY complex& operator-=(const complex<_Xp>& __c)
476 __re_ -= __c.real();
477 __im_ -= __c.imag();
480 template<class _Xp> _LIBCPP_INLINE_VISIBILITY complex& operator*=(const complex<_Xp>& __c)
482 *this = *this * complex(__c.real(), __c.imag());
485 template<class _Xp> _LIBCPP_INLINE_VISIBILITY complex& operator/=(const complex<_Xp>& __c)
487 *this = *this / complex(__c.real(), __c.imag());
494 complex<float>::complex(const complex<double>& __c)
495 : __re_(__c.real()), __im_(__c.imag()) {}
499 complex<float>::complex(const complex<long double>& __c)
500 : __re_(__c.real()), __im_(__c.imag()) {}
504 complex<double>::complex(const complex<float>& __c)
505 : __re_(__c.real()), __im_(__c.imag()) {}
509 complex<double>::complex(const complex<long double>& __c)
510 : __re_(__c.real()), __im_(__c.imag()) {}
514 complex<long double>::complex(const complex<float>& __c)
515 : __re_(__c.real()), __im_(__c.imag()) {}
519 complex<long double>::complex(const complex<double>& __c)
520 : __re_(__c.real()), __im_(__c.imag()) {}
590 _Tp __c = __w.real();
592 _Tp __ac = __a * __c;
595 _Tp __bc = __b * __c;
605 if (__libcpp_isnan_or_builtin(__c))
606 __c = copysign(_Tp(0), __c);
611 if (__libcpp_isinf_or_builtin(__c) || __libcpp_isinf_or_builtin(__d))
613 __c = copysign(__libcpp_isinf_or_builtin(__c) ? _Tp(1) : _Tp(0), __c);
628 if (__libcpp_isnan_or_builtin(__c))
629 __c = copysign(_Tp(0), __c);
636 __x = _Tp(INFINITY) * (__a * __c - __b * __d);
637 __y = _Tp(INFINITY) * (__a * __d + __b * __c);
670 _Tp __c = __w.real();
672 _Tp __logbw = logb(fmax(fabs(__c), fabs(__d)));
676 __c = scalbn(__c, -__ilogbw);
679 _Tp __denom = __c * __c + __d * __d;
680 _Tp __x = scalbn((__a * __c + __b * __d) / __denom, -__ilogbw);
681 _Tp __y = scalbn((__b * __c - __a * __d) / __denom, -__ilogbw);
686 __x = copysign(_Tp(INFINITY), __c) * __a;
687 __y = copysign(_Tp(INFINITY), __c) * __b;
689 …in(__a) || __libcpp_isinf_or_builtin(__b)) && __libcpp_isfinite_or_builtin(__c) && __libcpp_isfini…
693 __x = _Tp(INFINITY) * (__a * __c + __b * __d);
694 __y = _Tp(INFINITY) * (__b * __c - __a * __d);
698 __c = copysign(__libcpp_isinf_or_builtin(__c) ? _Tp(1) : _Tp(0), __c);
700 __x = _Tp(0) * (__a * __c + __b * __d);
701 __y = _Tp(0) * (__b * __c - __a * __d);
817 real(const complex<_Tp>& __c)
819 return __c.real();
835 imag(const complex<_Tp>& __c)
837 return __c.imag();
853 abs(const complex<_Tp>& __c)
855 return hypot(__c.real(), __c.imag());
863 arg(const complex<_Tp>& __c)
865 return atan2(__c.imag(), __c.real());
907 norm(const complex<_Tp>& __c)
909 if (__libcpp_isinf_or_builtin(__c.real()))
910 return abs(__c.real());
911 if (__libcpp_isinf_or_builtin(__c.imag()))
912 return abs(__c.imag());
913 return __c.real() * __c.real() + __c.imag() * __c.imag();
930 conj(const complex<_Tp>& __c)
932 return complex<_Tp>(__c.real(), -__c.imag());
951 proj(const complex<_Tp>& __c)
953 complex<_Tp> __r = __c;
954 if (__libcpp_isinf_or_builtin(__c.real()) || __libcpp_isinf_or_builtin(__c.imag()))
955 __r = complex<_Tp>(INFINITY, copysign(_Tp(0), __c.imag()));
1389 _CharT __c = __is.peek();
1390 if (__c == _CharT(','))
1398 __c = __is.peek();
1399 if (__c == _CharT(')'))
1410 else if (__c == _CharT(')'))