Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for addrsize (0.13 sec)

  1. staging/src/k8s.io/apiserver/pkg/cel/library/cost.go

    		return &cost
    	case "containsIP":
    		if len(args) >= 2 {
    			cidrSize := actualSize(args[0])
    			otherSize := actualSize(args[1])
    
    			// This is the base cost of comparing two byte lists.
    			// We will compare only up to the length of the CIDR prefix in bytes, so use the cidrSize twice.
    			cost := uint64(math.Ceil(float64(cidrSize+cidrSize) * common.StringTraversalCostFactor))
    
    			if overloadId == "cidr_contains_ip_string" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  2. cmd/xl-storage-disk-id-check.go

    	mu        sync.Mutex
    	init      sync.Once
    	lastMinuteLatency
    }
    
    func (e *lockedLastMinuteLatency) add(value time.Duration) {
    	e.addSize(value, 0)
    }
    
    // addSize will add a duration and size.
    func (e *lockedLastMinuteLatency) addSize(value time.Duration, sz int64) {
    	// alloc on every call, so we have a clean entry to swap in.
    	t := time.Now().Unix()
    	e.init.Do(func() {
    		e.cached.Store(&AccElem{})
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  3. cmd/data-usage-cache.go

    type allTierStats struct {
    	Tiers map[string]tierStats `msg:"ts"`
    }
    
    func newAllTierStats() *allTierStats {
    	return &allTierStats{
    		Tiers: make(map[string]tierStats),
    	}
    }
    
    func (ats *allTierStats) addSizes(tiers map[string]tierStats) {
    	for tier, st := range tiers {
    		ats.Tiers[tier] = ats.Tiers[tier].add(st)
    	}
    }
    
    func (ats *allTierStats) merge(other *allTierStats) {
    	for tier, st := range other.Tiers {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 10 14:49:50 UTC 2024
    - 42.8K bytes
    - Viewed (0)
  4. src/net/lookup.go

    	}
    }
    
    // lookupIPReturn turns the return values from singleflight.Do into
    // the return values from LookupIP.
    func lookupIPReturn(addrsi any, err error, shared bool) ([]IPAddr, error) {
    	if err != nil {
    		return nil, err
    	}
    	addrs := addrsi.([]IPAddr)
    	if shared {
    		clone := make([]IPAddr, len(addrs))
    		copy(clone, addrs)
    		addrs = clone
    	}
    	return addrs, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 28.6K bytes
    - Viewed (0)
  5. src/runtime/export_test.go

    func Fastrand64() uint64        { return rand() }
    func Fastrandn(n uint32) uint32 { return randn(n) }
    
    type ProfBuf profBuf
    
    func NewProfBuf(hdrsize, bufwords, tags int) *ProfBuf {
    	return (*ProfBuf)(newProfBuf(hdrsize, bufwords, tags))
    }
    
    func (p *ProfBuf) Write(tag *unsafe.Pointer, now int64, hdr []uint64, stk []uintptr) {
    	(*profBuf)(p).write(tag, now, hdr, stk)
    }
    
    const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  6. src/cmd/link/internal/ld/lib.go

    	a.uid = artrim(buf[28:34])
    	a.gid = artrim(buf[34:40])
    	a.mode = artrim(buf[40:48])
    	a.size = artrim(buf[48:58])
    	a.fmag = artrim(buf[58:60])
    
    	arsize := atolwhex(a.size)
    	if arsize&1 != 0 {
    		arsize++
    	}
    	return arsize + SAR_HDR
    }
    
    func loadobjfile(ctxt *Link, lib *sym.Library) {
    	pkg := objabi.PathToPrefix(lib.Pkg)
    
    	if ctxt.Debugvlog > 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 88.6K bytes
    - Viewed (0)
  7. cmd/data-scanner.go

    			// simply because getSize() function already heals the
    			// object.
    			delete(abandonedChildren, pathJoin(item.bucket, item.objectPath()))
    
    			if err != errIgnoreFileContrib {
    				into.addSizes(sz)
    				into.Objects++
    			}
    
    			wait() // wait to proceed to next entry.
    
    			return nil
    		})
    		if err != nil {
    			return err
    		}
    
    		if foundObjects && globalIsErasure {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:43:17 UTC 2024
    - 47.6K bytes
    - Viewed (0)
  8. src/cmd/link/internal/ld/elf.go

    }
    
    func elfwritedynentsymsize(ctxt *Link, s *loader.SymbolBuilder, tag elf.DynTag, t loader.Sym) {
    	if elf64 {
    		s.AddUint64(ctxt.Arch, uint64(tag))
    	} else {
    		s.AddUint32(ctxt.Arch, uint32(tag))
    	}
    	s.AddSize(ctxt.Arch, t)
    }
    
    func elfinterp(sh *ElfShdr, startva uint64, resoff uint64, p string) int {
    	interp = p
    	n := len(interp) + 1
    	sh.Addr = startva + resoff - uint64(n)
    	sh.Off = resoff - uint64(n)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 13:29:54 UTC 2024
    - 63.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/schema/schema_generated.h

        fbb_.AddOffset(Buffer::VT_DATA, data);
      }
      void add_offset(uint64_t offset) {
        fbb_.AddElement<uint64_t>(Buffer::VT_OFFSET, offset, 0);
      }
      void add_size(uint64_t size) {
        fbb_.AddElement<uint64_t>(Buffer::VT_SIZE, size, 0);
      }
      explicit BufferBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
            : fbb_(_fbb) {
        start_ = fbb_.StartTable();
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 1M bytes
    - Viewed (0)
Back to top