Moved ordering of two int64 to common/math.

This commit is contained in:
Sascha L. Teichmann
2015-07-26 16:40:50 +02:00
parent 8817094001
commit f6e5eb8510
4 changed files with 9 additions and 14 deletions

View File

@ -58,3 +58,10 @@ func Clamp32f(x, a, b float32) float32 {
}
return x
}
func Order64(a, b int64) (int64, int64) {
if a < b {
return a, b
}
return b, a
}