Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for int64Multiply (1.8 sec)

  1. staging/src/k8s.io/apimachinery/pkg/api/resource/amount.go

    		a.scale = 0
    		return true
    	case a.scale == 0:
    		c, ok := int64Multiply(a.value, b)
    		if !ok {
    			return false
    		}
    		a.value = c
    	case a.scale > 0:
    		c, ok := int64Multiply(a.value, b)
    		if !ok {
    			return false
    		}
    		if _, ok = positiveScaleInt64(c, a.scale); !ok {
    			return false
    		}
    		a.value = c
    	default:
    		c, ok := int64Multiply(a.value, b)
    		if !ok {
    			return false
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 13 19:42:28 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go

    		if scale >= int32(Nano) {
    			shifted := num + denom
    
    			var value int64
    			value, err := strconv.ParseInt(shifted, 10, 64)
    			if err != nil {
    				return Quantity{}, ErrNumeric
    			}
    			if result, ok := int64Multiply(value, int64(mantissa)); ok {
    				if !positive {
    					result = -result
    				}
    				// if the number is in canonical form, reuse the string
    				switch format {
    				case BinarySI:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 23.8K bytes
    - Viewed (0)
Back to top