github.com/opzlabs/tendermint@v0.34.27-terra.rc.2/libs/math/math.go (about)

     1  package math
     2  
     3  func MaxInt64(a, b int64) int64 {
     4  	if a > b {
     5  		return a
     6  	}
     7  	return b
     8  }
     9  
    10  func MaxInt(a, b int) int {
    11  	if a > b {
    12  		return a
    13  	}
    14  	return b
    15  }
    16  
    17  //-----------------------------------------------------------------------------
    18  
    19  func MinInt64(a, b int64) int64 {
    20  	if a < b {
    21  		return a
    22  	}
    23  	return b
    24  }
    25  
    26  func MinInt(a, b int) int {
    27  	if a < b {
    28  		return a
    29  	}
    30  	return b
    31  }