Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for relDiff (0.33 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/apf_controller.go

    				continue
    			}
    			plState.qsCompleter = qsCompleter
    		}
    		currentCL := int(math.Round(float64(allocs[idx])))
    		relChange := relDiff(float64(currentCL), float64(plState.currentCL))
    		plState.currentCL = currentCL
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 48.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/queueset_test.go

    	}
    	for i := range uss.clients {
    		expectedAverage := fairAverages[i]
    		var gotFair bool
    		if expectedAverage > 0 {
    			relDiff := (averages[i] - expectedAverage) / expectedAverage
    			gotFair = math.Abs(relDiff) <= margin
    		} else {
    			gotFair = math.Abs(averages[i]) <= margin
    		}
    
    		if gotFair != expectFair {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 26 12:55:23 UTC 2023
    - 58.4K bytes
    - Viewed (0)
  3. src/debug/macho/file.go

    				sh.Name = cstring(sh32.Name[0:])
    				sh.Seg = cstring(sh32.Seg[0:])
    				sh.Addr = uint64(sh32.Addr)
    				sh.Size = uint64(sh32.Size)
    				sh.Offset = sh32.Offset
    				sh.Align = sh32.Align
    				sh.Reloff = sh32.Reloff
    				sh.Nreloc = sh32.Nreloc
    				sh.Flags = sh32.Flags
    				if err := f.pushSection(sh, r); err != nil {
    					return nil, err
    				}
    			}
    
    		case LoadCmdSegment64:
    			var seg64 Segment64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 17.9K bytes
    - Viewed (0)
  4. src/cmd/link/internal/sym/segment.go

    	Sections []*Section
    }
    
    type Section struct {
    	Rwx     uint8
    	Extnum  int16
    	Align   int32
    	Name    string
    	Vaddr   uint64
    	Length  uint64
    	Seg     *Segment
    	Elfsect interface{} // an *ld.ElfShdr
    	Reloff  uint64
    	Rellen  uint64
    	// Relcount is the number of *host* relocations applied to this section
    	// (when external linking).
    	// Incremented atomically on multiple goroutines.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 16 05:32:52 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  5. src/cmd/link/internal/ld/asmb.go

    func sizeExtRelocs(ctxt *Link, relsize uint32) {
    	if relsize == 0 {
    		panic("sizeExtRelocs: relocation size not set")
    	}
    	var sz int64
    	for _, seg := range Segments {
    		for _, sect := range seg.Sections {
    			sect.Reloff = uint64(ctxt.Out.Offset() + sz)
    			sect.Rellen = uint64(relsize * sect.Relcount)
    			sz += int64(sect.Rellen)
    		}
    	}
    	filesz := ctxt.Out.Offset() + sz
    	err := ctxt.Out.Mmap(uint64(filesz))
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 02 09:22:56 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  6. src/debug/macho/macho.go

    	Size     uint32
    	Offset   uint32
    	Align    uint32
    	Reloff   uint32
    	Nreloc   uint32
    	Flags    uint32
    	Reserve1 uint32
    	Reserve2 uint32
    }
    
    // A Section64 is a 64-bit Mach-O section header.
    type Section64 struct {
    	Name     [16]byte
    	Seg      [16]byte
    	Addr     uint64
    	Size     uint64
    	Offset   uint32
    	Align    uint32
    	Reloff   uint32
    	Nreloc   uint32
    	Flags    uint32
    	Reserve1 uint32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 14 00:56:52 UTC 2021
    - 7.6K bytes
    - Viewed (0)
  7. src/cmd/link/internal/loadmacho/ldmacho.go

    	nsect    uint32
    	flags    uint32
    	sect     []ldMachoSect
    }
    
    type ldMachoSect struct {
    	name    string
    	segname string
    	addr    uint64
    	size    uint64
    	off     uint32
    	align   uint32
    	reloff  uint32
    	nreloc  uint32
    	flags   uint32
    	res1    uint32
    	res2    uint32
    	sym     loader.Sym
    	rel     []ldMachoRel
    }
    
    type ldMachoRel struct {
    	addr      uint32
    	symnum    uint32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 12 18:45:57 UTC 2022
    - 19.1K bytes
    - Viewed (0)
  8. src/cmd/link/internal/ld/macho_combine_dwarf.go

    			}
    			if cSect.Addr != 0 {
    				sect.Addr = cSect.Addr
    			}
    		} else {
    			if sect.Offset != 0 {
    				sect.Offset += uint32(deltaOffset)
    			}
    			if sect.Reloff != 0 {
    				sect.Reloff += uint32(deltaOffset)
    			}
    		}
    		if err := r.WriteAt(sectOffset, &sect); err != nil {
    			return err
    		}
    		sectOffset += sectSize
    	}
    	return 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)
  9. src/cmd/link/internal/ld/pe.go

    	relocsect := func(sect *sym.Section, syms []loader.Sym, base uint64) int {
    		// If main section has no bits, nothing to relocate.
    		if sect.Vaddr >= sect.Seg.Vaddr+sect.Seg.Filelen {
    			return 0
    		}
    		sect.Reloff = uint64(ctxt.Out.Offset())
    		for i, s := range syms {
    			if !ldr.AttrReachable(s) {
    				continue
    			}
    			if uint64(ldr.SymValue(s)) >= sect.Vaddr {
    				syms = syms[i:]
    				break
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 19:01:27 UTC 2023
    - 48.8K bytes
    - Viewed (0)
  10. src/cmd/link/internal/ld/macho.go

    	buf := "__" + strings.Replace(sect.Name[1:], ".", "_", -1)
    
    	msect := newMachoSect(mseg, buf, segname)
    
    	if sect.Rellen > 0 {
    		msect.reloc = uint32(sect.Reloff)
    		msect.nreloc = uint32(sect.Rellen / 8)
    	}
    
    	for 1<<msect.align < sect.Align {
    		msect.align++
    	}
    	msect.addr = sect.Vaddr
    	msect.size = sect.Length
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:32:53 UTC 2024
    - 43.9K bytes
    - Viewed (0)
Back to top