- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 581 for zeroing (0.41 sec)
-
src/cmd/internal/obj/x86/evex.go
} // evexSuffixBits carries instruction EVEX suffix set flags. // // Examples: // // "RU_SAE.Z" => {rounding: 3, zeroing: true} // "Z" => {zeroing: true} // "BCST" => {broadcast: true} // "SAE.Z" => {sae: true, zeroing: true} type evexSuffix struct { rounding byte sae bool zeroing bool broadcast bool } // Rounding control values.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 9.3K bytes - Viewed (0) -
test/clear.go
// license that can be found in the LICENSE file. package main import "math" func checkClearSlice() { s := []int{1, 2, 3} clear(s) for i := range s { if s[i] != 0 { panic("clear not zeroing slice elem") } } clear([]int{}) } func checkClearMap() { m1 := make(map[int]int) m1[0] = 0 m1[1] = 1 clear(m1) if len(m1) != 0 { panic("m1 is not cleared") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 31 19:43:07 UTC 2023 - 743 bytes - Viewed (0) -
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) -
src/cmd/asm/internal/asm/testdata/amd64error.s
VMAXPD.SAE (AX), Z2, K1, Z1 // ERROR "illegal SAE with memory argument" VADDPD.SAE X3, X2, K1, X1 // ERROR "unsupported SAE" // Unsupported zeroing. VFPCLASSPDX.Z $0, (AX), K2, K1 // ERROR "unsupported zeroing" VFPCLASSPDY.Z $0, (AX), K2, K1 // ERROR "unsupported zeroing" // Unsupported broadcast. VFPCLASSSD.BCST $0, (AX), K2, K1 // ERROR "unsupported broadcast"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 14 00:03:57 UTC 2023 - 8.9K bytes - Viewed (0) -
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) -
src/cmd/compile/internal/riscv64/ggen.go
p = pp.Append(p, obj.ADUFFZERO, obj.TYPE_NONE, 0, 0, obj.TYPE_MEM, 0, 0) p.To.Name = obj.NAME_EXTERN p.To.Sym = ir.Syms.Duffzero p.To.Offset = 8 * (128 - cnt/int64(types.PtrSize)) return p } // Loop, zeroing pointer width bytes at a time. // ADD $(off), SP, T0 // ADD $(cnt), T0, T1 // loop: // MOV ZERO, (T0) // ADD $Widthptr, T0 // BNE T0, T1, loop
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 19 15:59:22 UTC 2022 - 1.8K bytes - Viewed (0) -
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) -
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) -
src/runtime/HACKING.md
before they become visible as GC roots. Otherwise, the GC may observe stale heap pointers. See "Zero-initialization versus zeroing". Zero-initialization versus zeroing ================================== There are two types of zeroing in the runtime, depending on whether the memory is already initialized to a type-safe state. If memory is not in a type-safe state, meaning it potentially contains
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 13.9K bytes - Viewed (0) -
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)