Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 144 for zeroing (0.23 sec)

  1. test/codegen/structs.go

    // license that can be found in the LICENSE file.
    
    package codegen
    
    // This file contains code generation tests related to the handling of
    // struct types.
    
    // ------------- //
    //    Zeroing    //
    // ------------- //
    
    type Z1 struct {
    	a, b, c int
    }
    
    func Zero1(t *Z1) { // Issue #18370
    	// amd64:`MOVUPS\tX[0-9]+, \(.*\)`,`MOVQ\t\$0, 16\(.*\)`
    	*t = Z1{}
    }
    
    type Z2 struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 923 bytes
    - Viewed (0)
  2. src/runtime/memclr_riscv64.s

    // void runtime·memclrNoHeapPointers(void*, uintptr)
    TEXT runtime·memclrNoHeapPointers<ABIInternal>(SB),NOSPLIT,$0-16
    	// X10 = ptr
    	// X11 = n
    
    	// If less than 8 bytes, do single byte zeroing.
    	MOV	$8, X9
    	BLT	X11, X9, check4
    
    	// Check alignment
    	AND	$7, X10, X5
    	BEQZ	X5, aligned
    
    	// Zero one byte at a time until we reach 8 byte alignment.
    	SUB	X5, X9, X5
    	SUB	X5, X11, X11
    align:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 13:57:06 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  3. src/internal/bytealg/bytealg.go

    		h -= pow * uint32(s[i+n])
    		if h == hashss && string(s[i:i+n]) == string(sep) {
    			return i
    		}
    	}
    	return -1
    }
    
    // MakeNoZero makes a slice of length n and capacity of at least n Bytes
    // without zeroing the bytes (including the bytes between len and cap).
    // It is the caller's responsibility to ensure uninitialized bytes
    // do not leak to the end user.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 19 19:51:15 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  4. src/runtime/mfixalloc.go

    // Malloc uses a FixAlloc wrapped around sysAlloc to manage its
    // mcache and mspan objects.
    //
    // Memory returned by fixalloc.alloc is zeroed by default, but the
    // caller may take responsibility for zeroing allocations by setting
    // the zero flag to false. This is only safe if the memory never
    // contains heap pointers.
    //
    // The caller is responsible for locking around FixAlloc calls.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 24 20:28:25 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  5. pkg/slices/slices.go

    func FilterInPlace[E any](s []E, f func(E) bool) []E {
    	n := 0
    	for _, val := range s {
    		if f(val) {
    			s[n] = val
    			n++
    		}
    	}
    
    	// If those elements contain pointers you might consider zeroing those elements
    	// so that objects they reference can be garbage collected."
    	var empty E
    	for i := n; i < len(s); i++ {
    		s[i] = empty
    	}
    
    	s = s[:n]
    	return s
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 06:28:11 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  6. src/vendor/golang.org/x/crypto/sha3/sha3.go

    func (d *state) BlockSize() int { return d.rate }
    
    // Size returns the output size of the hash function in bytes.
    func (d *state) Size() int { return d.outputLen }
    
    // Reset clears the internal state by zeroing the sponge state and
    // the buffer indexes, and setting Sponge.state to absorbing.
    func (d *state) Reset() {
    	// Zero the permutation's state.
    	for i := range d.a {
    		d.a[i] = 0
    	}
    	d.state = spongeAbsorbing
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  7. src/runtime/mkduff.go

    // Copyright 2015 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build ignore
    
    // runtime·duffzero is a Duff's device for zeroing memory.
    // The compiler jumps to computed addresses within
    // the routine to zero chunks of memory.
    // Do not change duffzero without also
    // changing the uses in cmd/compile/internal/*/*.go.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 19:04:21 UTC 2023
    - 8K bytes
    - Viewed (0)
  8. src/sync/poolqueue.go

    			break
    		}
    	}
    
    	// We now own slot.
    	val := *(*any)(unsafe.Pointer(slot))
    	if val == dequeueNil(nil) {
    		val = nil
    	}
    
    	// Tell pushHead that we're done with this slot. Zeroing the
    	// slot is also important so we don't leave behind references
    	// that could keep this object live longer than necessary.
    	//
    	// We write to val first and then publish that we're done with
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 18:12:29 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  9. pkg/proxy/endpoint.go

    }
    
    func newBaseEndpointInfo(ip string, port int, isLocal, ready, serving, terminating bool, zoneHints sets.Set[string]) *BaseEndpointInfo {
    	return &BaseEndpointInfo{
    		ip:          ip,
    		port:        port,
    		endpoint:    net.JoinHostPort(ip, strconv.Itoa(port)),
    		isLocal:     isLocal,
    		ready:       ready,
    		serving:     serving,
    		terminating: terminating,
    		zoneHints:   zoneHints,
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 21 14:38:25 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  10. releasenotes/notes/se-conflict.yaml

    apiVersion: release-notes/v2
    kind: bug-fix
    area: traffic-management
    issue:
      - 50478
    releaseNotes:
      - |
        **Fixed** a behavioral change in Istio 1.20 that caused merging of ServiceEntries with the same hostname and port names
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 01 02:06:39 UTC 2024
    - 261 bytes
    - Viewed (0)
Back to top