Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 317 for zeroing (1.48 sec)

  1. src/runtime/arena.go

    	// not Linux decides to back this memory with transparent huge
    	// pages. There's latency involved in this zeroing, but the hugepage
    	// gains are almost always worth it. Note: it's important that we
    	// clear even if it's freshly mapped and we know there's no point
    	// to zeroing as *that* is the critical signal to use huge pages.
    	memclrNoHeapPointers(unsafe.Pointer(s.base()), s.elemsize)
    	s.needzero = 0
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:44:56 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  2. src/runtime/malloc.go

    // already zeroed. Otherwise if needzero is true, objects are zeroed as
    // they are allocated. There are various benefits to delaying zeroing
    // this way:
    //
    //	1. Stack frame allocation can avoid zeroing altogether.
    //
    //	2. It exhibits better temporal locality, since the program is
    //	   probably about to write to the memory.
    //
    //	3. We don't zero pages that never get reused.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/block.go

    	b.Kind = kind
    	b.ResetControls()
    	b.Aux = nil
    	b.AuxInt = 0
    	b.Controls[0] = v
    	b.Controls[1] = w
    	v.Uses++
    	w.Uses++
    }
    
    // truncateValues truncates b.Values at the ith element, zeroing subsequent elements.
    // The values in b.Values after i must already have had their args reset,
    // to maintain correct value uses counts.
    func (b *Block) truncateValues(i int) {
    	tail := b.Values[i:]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/primitives/UnsignedBytes.java

                 * corresponds to the least significant nonzero byte in lw ^ rw, since lw and rw are
                 * little-endian. Long.numberOfTrailingZeros(diff) tells us the least significant
                 * nonzero bit, and zeroing out the first three bits of L.nTZ gives us the shift to get
                 * that least significant nonzero byte.
                 */
                int n = Long.numberOfTrailingZeros(lw ^ rw) & ~0x7;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  5. guava/src/com/google/common/primitives/UnsignedBytes.java

                 * corresponds to the least significant nonzero byte in lw ^ rw, since lw and rw are
                 * little-endian. Long.numberOfTrailingZeros(diff) tells us the least significant
                 * nonzero bit, and zeroing out the first three bits of L.nTZ gives us the shift to get
                 * that least significant nonzero byte.
                 */
                int n = Long.numberOfTrailingZeros(lw ^ rw) & ~0x7;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/_gen/RISCV64Ops.go

    			},
    			typ:            "Mem",
    			faultOnNilArg0: true,
    			faultOnNilArg1: true,
    		},
    
    		// Generic moves and zeros
    
    		// general unaligned zeroing
    		// arg0 = address of memory to zero (in X5, changed as side effect)
    		// arg1 = address of the last element to zero (inclusive)
    		// arg2 = mem
    		// auxint = element size
    		// returns mem
    		//	mov	ZERO, (X5)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 14:57:07 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/_gen/ARM64.rules

    // strip off fractional word zeroing
    (Zero [s] ptr mem) && s%16 != 0 && s%16 <= 8 && s > 16 =>
    	(Zero [8]
    		(OffPtr <ptr.Type> ptr [s-8])
    		(Zero [s-s%16] ptr mem))
    (Zero [s] ptr mem) && s%16 != 0 && s%16 > 8 && s > 16 =>
    	(Zero [16]
    		(OffPtr <ptr.Type> ptr [s-16])
    		(Zero [s-s%16] ptr mem))
    
    // medium zeroing uses a duff device
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 113.1K bytes
    - Viewed (0)
  8. src/runtime/mgcsweep.go

    			unlock(&mheap_.lock)
    		})
    		return false
    	}
    
    	if spc.sizeclass() != 0 {
    		// Handle spans for small objects.
    		if nfreed > 0 {
    			// Only mark the span as needing zeroing if we've freed any
    			// objects, because a fresh span that had been allocated into,
    			// wasn't totally filled, but then swept, still has all of its
    			// free slots zeroed.
    			s.needzero = 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:52:18 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  9. test/codegen/memcombine.go

    	// ppc64le:`MOVW\s`
    	// ppc64:`MOVWBR`
    	b[(idx<<2)+3], b[(idx<<2)+2], b[(idx<<2)+1], b[(idx<<2)+0] = byte(val>>24), byte(val>>16), byte(val>>8), byte(val)
    }
    
    // ------------- //
    //    Zeroing    //
    // ------------- //
    
    // Check that zero stores are combined into larger stores
    
    func zero_byte_2(b1, b2 []byte) {
    	// bounds checks to guarantee safety of writes below
    	_, _ = b1[1], b2[1]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 19:45:41 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/_gen/AMD64.rules

    			(MOVOstoreconst [makeValAndOff(0,16)] destptr
    				(MOVOstoreconst [makeValAndOff(0,0)] destptr mem))))
    
    // Medium zeroing uses a duff device.
    (Zero [s] destptr mem)
    	&& s > 64 && s <= 1024 && s%16 == 0 && !config.noDuffDevice =>
    	(DUFFZERO [s] destptr mem)
    
    // Large zeroing uses REP STOSQ.
    (Zero [s] destptr mem)
    	&& (s > 1024 || (config.noDuffDevice && s > 64 || !config.useSSE && s > 32))
    	&& s%8 == 0 =>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 19:38:41 UTC 2024
    - 93.9K bytes
    - Viewed (0)
Back to top