Lines Matching refs:__c

24   complex(const complex<_Xp> &__c)
25 : __re_(__c.real()), __im_(__c.imag()) {}
58 complex &operator=(const complex<_Xp> &__c) {
59 __re_ = __c.real();
60 __im_ = __c.imag();
64 complex &operator+=(const complex<_Xp> &__c) {
65 __re_ += __c.real();
66 __im_ += __c.imag();
70 complex &operator-=(const complex<_Xp> &__c) {
71 __re_ -= __c.real();
72 __im_ -= __c.imag();
76 complex &operator*=(const complex<_Xp> &__c) {
77 *this = *this * complex(__c.real(), __c.imag());
81 complex &operator/=(const complex<_Xp> &__c) {
82 *this = *this / complex(__c.real(), __c.imag());
140 _Tp __c = __w.real();
142 _Tp __ac = __a * __c;
145 _Tp __bc = __b * __c;
153 if (std::isnan(__c))
154 __c = copysign(_Tp(0), __c);
159 if (std::isinf(__c) || std::isinf(__d)) {
160 __c = copysign(std::isinf(__c) ? _Tp(1) : _Tp(0), __c);
174 if (std::isnan(__c))
175 __c = copysign(_Tp(0), __c);
181 __x = _Tp(INFINITY) * (__a * __c - __b * __d);
182 __y = _Tp(INFINITY) * (__a * __d + __b * __c);
210 _Tp __c = __w.real();
212 _Tp __logbw = logb(fmax(fabs(__c), fabs(__d)));
215 __c = scalbn(__c, -__ilogbw);
218 _Tp __denom = __c * __c + __d * __d;
219 _Tp __x = scalbn((__a * __c + __b * __d) / __denom, -__ilogbw);
220 _Tp __y = scalbn((__b * __c - __a * __d) / __denom, -__ilogbw);
223 __x = copysign(_Tp(INFINITY), __c) * __a;
224 __y = copysign(_Tp(INFINITY), __c) * __b;
225 } else if ((std::isinf(__a) || std::isinf(__b)) && std::isfinite(__c) && std::isfinite(__d)) {
228 __x = _Tp(INFINITY) * (__a * __c + __b * __d);
229 __y = _Tp(INFINITY) * (__b * __c - __a * __d);
231 __c = copysign(std::isinf(__c) ? _Tp(1) : _Tp(0), __c);
233 __x = _Tp(0) * (__a * __c + __b * __d);
234 __y = _Tp(0) * (__b * __c - __a * __d);
302 template <class _Tp> _Tp abs(const std::complex<_Tp> &__c);
306 template <class _Tp> _Tp arg(const std::complex<_Tp> &__c);
310 template <class _Tp> _Tp norm(const std::complex<_Tp> &__c);
314 template <class _Tp> std::complex<_Tp> conj(const std::complex<_Tp> &__c);
318 template <class _Tp> std::complex<_Tp> proj(const std::complex<_Tp> &__c);