aboutsummaryrefslogtreecommitdiff
path: root/go-src/ctfcMath/ctfcMath.go
blob: 5dfc61338a691ac7773a0744b6ac242195392a44 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package ctfcmath

import "math"

func MaxInt(x int, y int) int {
	if x > y {
		return x
	}
	return y
}

func CeilDivInt(x int, y int) int {
	return int(math.Ceil(float64(x) / float64(y)))
}