src/base/misc.hh
inline int modulus(int a, int b)
	{
		if (a < 0) return b + (a %  b);
		else return (a % b);
	}
// modulus {{{2
/*!
	 * calculates a mod b, by the mathematical definition:
	 * the C operator % does not give the right answer if a < 0
	 */
modulus {{{2
calculates a mod b, by the mathematical definition:
the C operator % does not give the right answer if a < 0
modulus {{{ 2 calculates a mod b by the mathematical definition : the C operator % does not give the right answer if a < 0
inline int modulus(int a, int b)
	{
		if (a < 0) return b + (a %  b);
		else return (a % b);
	}
inline int modulus ( int a , int b ) { if ( a < 0 ) return b + ( a % b ) ; else return ( a % b ) ; }
modulus {{{2
 calculates a mod b, by the mathematical definition:
 the C operator % does not give the right answer if a < 0
modulus {{{ 2 calculates a mod b by the mathematical definition : the C operator % does not give the right answer if a < 0