Anton Lundin ff966f2c1a Move mod calculations to a separate helper
We use mod calculations on multiple places, so make a separate helper
from it with proper types.

The "clumsiness" of defining a local variable to pass into the function
and out from it comes from the discrepancies in how c and c++ handles
initializations of variables in a struct.

Thanks goes to Tiago and Linus for pointing me in the right direction.

Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-05-25 06:20:52 -07:00
..
2014-02-27 20:09:57 -08:00
2014-02-08 08:00:27 -08:00
2014-05-24 06:42:10 -07:00
2014-02-27 11:44:59 -08:00
2014-05-22 11:40:22 -07:00
2014-02-27 20:09:57 -08:00
2014-05-22 11:40:22 -07:00
2014-05-22 11:40:22 -07:00
2014-05-22 11:40:22 -07:00
2014-05-22 11:40:22 -07:00
2014-05-22 11:40:22 -07:00
2014-05-22 11:40:22 -07:00
2014-05-22 11:40:22 -07:00
2014-05-22 11:40:22 -07:00
2014-05-22 11:40:22 -07:00
2014-05-22 11:40:22 -07:00
2014-05-22 11:40:22 -07:00
2014-05-22 11:40:22 -07:00
2014-05-22 11:40:22 -07:00