Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewDec (0.06 sec)

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

    func (q *Quantity) Mul(y int64) bool {
    	q.s = ""
    	if q.d.Dec == nil && q.i.Mul(y) {
    		return true
    	}
    	return q.ToDec().d.Dec.Mul(q.d.Dec, inf.NewDec(y, inf.Scale(0))).UnscaledBig().IsInt64()
    }
    
    // Cmp returns 0 if the quantity is equal to y, -1 if the quantity is less than y, or 1 if the
    // quantity is greater than y.
    func (q *Quantity) Cmp(y Quantity) int {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  2. src/cmd/link/internal/ld/macho_combine_dwarf.go

    		if err != nil {
    			return nil, nil, err
    		}
    
    		newSec := *sect
    		newSec.Offset = uint32(dwarfseg.Offset) + uint32(buf.Len())
    		newSec.Addr = dwarfseg.Addr + uint64(buf.Len())
    		if compressed {
    			newSec.Name = "__z" + sect.Name[2:]
    			newSec.Size = uint64(len(contents))
    		}
    		sects = append(sects, &newSec)
    		buf.Write(contents)
    	}
    	return sects, buf.Bytes(), nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top