1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-03-20 20:09:43 +00:00

moved zgmod to util

This commit is contained in:
Zeno Rogue
2019-11-08 14:56:54 +01:00
parent af9b049057
commit b80caa11a6
2 changed files with 2 additions and 2 deletions

View File

@@ -41,6 +41,8 @@ EX int gmod(int i, int j) {
return i;
}
EX int zgmod(int a, int b) { return b ? gmod(a, b) : a; }
EX int gdiv(int i, int j) {
return (i - gmod(i, j)) / j;
}