Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 101 for aligned2 (0.2 sec)

  1. src/runtime/mpallocbits.go

    }
    
    // pages64 returns a 64-bit bitmap representing a block of 64 pages aligned
    // to 64 pages. The returned block of pages is the one containing the i'th
    // page in this pallocBits. Each bit represents whether the page is in-use.
    func (b *pallocBits) pages64(i uint) uint64 {
    	return (*pageBits)(b).block64(i)
    }
    
    // allocPages64 allocates a 64-bit block of 64 pages aligned to 64 pages according
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 15:13:43 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  2. internal/ioutil/ioutil.go

    // directio.AlignSize is defined as 0 in MacOS causing divide by 0 error.
    const DirectioAlignSize = 4096
    
    // CopyAligned - copies from reader to writer using the aligned input
    // buffer, it is expected that input buffer is page aligned to
    // 4K page boundaries. Without passing aligned buffer may cause
    // this function to return error.
    //
    // This code is similar in spirit to io.Copy but it is only to be
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/devicemanager/topology_hints.go

    	m.mutex.Lock()
    	defer m.mutex.Unlock()
    	for resource, requested := range accumulatedResourceRequests {
    		// Only consider devices that actually contain topology information.
    		if aligned := m.deviceHasTopologyAlignment(resource); !aligned {
    			klog.InfoS("Resource does not have a topology preference", "resource", resource)
    			deviceHints[resource] = nil
    			continue
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jan 27 02:10:25 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  4. src/runtime/malloc_test.go

    	// nothing else allocates from it.
    	runtime.Acquirem()
    
    	// Make 1-byte allocations until we get a fresh tiny slot.
    	aligned := false
    	for i := 0; i < 16; i++ {
    		x := runtime.Escape(new(byte))
    		if uintptr(unsafe.Pointer(x))&0xf == 0xf {
    			aligned = true
    			break
    		}
    	}
    	if !aligned {
    		runtime.Releasem()
    		t.Fatal("unable to get a fresh tiny slot")
    	}
    
    	// Create a 4-byte object so that the current
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  5. pkg/kubelet/cm/cpumanager/policy_static.go

    	// A hint is considered socket aligned if sockets across which numa nodes span is equal to minSockets
    	minSockets := (minAffinitySize + numaNodesPerSocket - 1) / numaNodesPerSocket
    	return p.topology.CPUDetails.SocketsInNUMANodes(numaNodesBitMask...).Size() == minSockets
    }
    
    // getAlignedCPUs return set of aligned CPUs based on numa affinity mask and configured policy options.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 06 13:16:15 UTC 2023
    - 28.8K bytes
    - Viewed (0)
  6. pkg/kubelet/cm/devicemanager/manager.go

    		if err != nil {
    			return nil, err
    		}
    		if allocateRemainingFrom(preferred.Intersection(aligned)) {
    			return allocated, nil
    		}
    		// Then fallback to allocate from the aligned set if no preferred list
    		// is returned (or not enough devices are returned in that list).
    		if allocateRemainingFrom(aligned) {
    			return allocated, nil
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 12:01:56 UTC 2024
    - 43K bytes
    - Viewed (0)
  7. src/cmd/internal/obj/ppc64/doc.go

    Starting with Go 1.12, Go asm supports the PCALIGN directive, which indicates
    that the next instruction should be aligned to the specified value. Currently
    8 and 16 are the only supported values, and a maximum of 2 NOPs will be added
    to align the code. That means in the case where the code is aligned to 4 but
    PCALIGN $16 is at that location, the code will only be aligned to 8 to avoid
    adding 3 NOPs.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 16:47:45 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  8. src/internal/runtime/atomic/types.go

    // two's-complement way.
    //
    //go:nosplit
    func (i *Int32) Add(delta int32) int32 {
    	return Xaddint32(&i.value, delta)
    }
    
    // Int64 is an atomically accessed int64 value.
    //
    // 8-byte aligned on all platforms, unlike a regular int64.
    //
    // An Int64 must not be copied.
    type Int64 struct {
    	noCopy noCopy
    	_      align64
    	value  int64
    }
    
    // Load accesses and returns the value atomically.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  9. src/runtime/pinner.go

    	return pinState{bytep, byteVal, mask}
    }
    
    func (s *mspan) pinnerBitSize() uintptr {
    	return divRoundUp(uintptr(s.nelems)*2, 8)
    }
    
    // newPinnerBits returns a pointer to 8 byte aligned bytes to be used for this
    // span's pinner bits. newPinnerBits is used to mark objects that are pinned.
    // They are copied when the span is swept.
    func (s *mspan) newPinnerBits() *pinnerBits {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 11K bytes
    - Viewed (0)
  10. src/runtime/syscall_windows.go

    		// passed as two words (little endian); and
    		// structs are pushed on the stack. In
    		// fastcall, arguments larger than the word
    		// size are passed by reference. On arm,
    		// 8-byte aligned arguments round up to the
    		// next even register and can be split across
    		// registers and the stack.
    		panic("compileCallback: argument size is larger than uintptr")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 16.6K bytes
    - Viewed (0)
Back to top