OSDN Git Service
(root)
/
bytom
/
vapor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
match engine (#418)
[bytom/vapor.git]
/
math
/
algorithm.go
diff --git a/math/algorithm.go
b/math/algorithm.go
new file mode 100644
(file)
index 0000000..
a596496
--- /dev/null
+++ b/
math/algorithm.go
@@ -0,0
+1,8
@@
+package math
+
+func MinUint64(x, y uint64) uint64 {
+ if x < y {
+ return x
+ }
+ return y
+}