diff options
Diffstat (limited to 'zmodn.h')
| -rw-r--r-- | zmodn.h | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -17,9 +17,9 @@ public: | |||
| 17 | Zmod operator+(const Zmod& z) const { return int64 + z.int64; } | 17 | Zmod operator+(const Zmod& z) const { return int64 + z.int64; } |
| 18 | Zmod operator-(const Zmod& z) const { return int64 - z.int64; } | 18 | Zmod operator-(const Zmod& z) const { return int64 - z.int64; } |
| 19 | Zmod operator*(const Zmod& z) const { return int64 * z.int64; } | 19 | Zmod operator*(const Zmod& z) const { return int64 * z.int64; } |
| 20 | Zmod operator+=(const Zmod& z) { return int64 += z.int64; } | 20 | Zmod operator+=(const Zmod& z) { return (*this) = int64 + z.int64; } |
| 21 | Zmod operator-=(const Zmod& z) { return int64 -= z.int64; } | 21 | Zmod operator-=(const Zmod& z) { return (*this) = int64 - z.int64; } |
| 22 | Zmod operator*=(const Zmod& z) { return int64 *= z.int64; } | 22 | Zmod operator*=(const Zmod& z) { return (*this) = int64 * z.int64; } |
| 23 | 23 | ||
| 24 | bool operator==(const Zmod& z) const { return int64 == z.int64; } | 24 | bool operator==(const Zmod& z) const { return int64 == z.int64; } |
| 25 | bool operator!=(const Zmod& z) const { return int64 != z.int64; } | 25 | bool operator!=(const Zmod& z) const { return int64 != z.int64; } |
