BUG=skia:
Review URL: https://codereview.chromium.org/
1027793002
Sk2x& operator -=(const Sk2x& o) { return (*this = *this - o); }
Sk2x& operator *=(const Sk2x& o) { return (*this = *this * o); }
- Sk2x negate() const { return Sk2x(0) - *this; }
+ Sk2x negate() const { return Sk2x((T)0) - *this; }
Sk2x operator -() const { return this->negate(); }
Sk2x rsqrt() const; // Approximate 1/this->sqrt().
Sk4x& operator *=(const Sk4x& o) { return (*this = *this * o); }
Sk4x& operator /=(const Sk4x& o) { return (*this = *this / o); }
- Sk4x negate() const { return Sk4x(0) - *this; }
+ Sk4x negate() const { return Sk4x((T)0) - *this; }
Sk4x operator -() const { return this->negate(); }
Sk4x rsqrt() const; // Approximate reciprocal sqrt().