]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/misc.hh
Merge commit 'origin/dev/jneeman' into systems-per-page
[lilypond.git] / lily / include / misc.hh
index e33d8363819a658267d0e15e62868fb1fe29e631..12392c0cacd804dcee2db84c0e0aaec93ef0651a 100644 (file)
@@ -28,6 +28,13 @@ sign (int i)
   else return 0;
 }
 
+inline int
+shift_left (int value, int shiftamount)
+{
+ if (shiftamount < 0) return (value >> -shiftamount); 
+  else return (value << shiftamount);
+}
+
 inline Real
 linear_interpolate (Real x, Real x1, Real x2, Real y1, Real y2)
 {