math.go at [be5950faa4]

File src/0dev.org/math/math.go artifact 1a240e5264 part of check-in be5950faa4


// Helper functions that really belong in the SDK or in a generic library...
package math

func MinInt(i1, i2 int) int {
	if i1 <= i2 {
		return i1
	}
	return i2
}

func MaxInt(i1, i2 int) int {
	if i1 >= i2 {
		return i1
	}
	return i2
}