Home | History | Annotate | Download | only in media

Lines Matching refs:other

65 // or equal to the rank of the type of the other operand, the operand with signed
81 // Other libraries do exist for safe integer operations which can detect the
102 Modulo<T> operator +=(const Modulo<S> &other) {
104 mValue += other.unsignedValue();
110 Modulo<T> operator -=(const Modulo<S> &other) {
112 mValue -= other.unsignedValue();
120 const Modulo<T> operator +(const Modulo<S> &other) const {
122 return Modulo<T>(mValue + other.unsignedValue());
127 const Modulo<T> operator -(const Modulo<S> &other) const {
129 return Modulo<T>(mValue - other.unsignedValue());
139 bool operator >(const Modulo<S> &other) const {
141 return static_cast<signedT>(mValue - other.unsignedValue()) > 0;
146 bool operator >=(const Modulo<S> &other) const {
148 return static_cast<signedT>(mValue - other.unsignedValue()) >= 0;
153 bool operator ==(const Modulo<S> &other) const {
155 return static_cast<signedT>(mValue - other.unsignedValue()) == 0;
160 bool operator <=(const Modulo<S> &other) const {
162 return static_cast<signedT>(mValue - other.unsignedValue()) <= 0;
167 bool operator <(const Modulo<S> &other) const {
169 return static_cast<signedT>(mValue - other.unsignedValue()) < 0;
177 Modulo<T> operator +=(const S &other) {
178 mValue += unsignedT(other);
184 Modulo<T> operator -=(const S &other) {
185 mValue -= unsignedT(other);
199 const Modulo<T> operator +(const S &other) const {
201 return Modulo<T>(mValue + unsignedT(other));
206 const Modulo<T> operator -(const S &other) const {
208 return Modulo<T>(mValue - unsignedT(other));