Compute (a*s + c) % m. m must be < 2^35. Works also for s, c < 0
function MultModM input Real a; input Real s; input Real c; input Real m; output Real v; end MultModM;