base: add some mathematical operators to Cycles class
diff --git a/src/base/types.hh b/src/base/types.hh
index 7f43750..b4cb69a 100644
--- a/src/base/types.hh
+++ b/src/base/types.hh
@@ -113,6 +113,18 @@
     bool operator>(const Cycles& cc) const
     { return c > cc.c; }
 
+    const Cycles operator +(const Cycles& b) const
+    { return Cycles(c + b.c); }
+
+    const Cycles operator -(const Cycles& b) const
+    { assert(c >= b.c); return Cycles(c - b.c); }
+
+    const Cycles operator <<(const int32_t shift)
+    { return Cycles(c << shift); }
+
+    const Cycles operator >>(const int32_t shift)
+    { return Cycles(c >> shift); }
+
 #endif // SWIG not touching operators
 
 };