OSDN Git Service

Mov (#518)
[bytom/vapor.git] / math / algorithm.go
diff --git a/math/algorithm.go b/math/algorithm.go
new file mode 100644 (file)
index 0000000..791a70c
--- /dev/null
@@ -0,0 +1,9 @@
+package math
+
+// MinUint64 return the min of x and y
+func MinUint64(x, y uint64) uint64 {
+       if x < y {
+               return x
+       }
+       return y
+}