Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 638 for zeroing (0.18 sec)

  1. test/fixedbugs/issue16515.go

    	sink = &s // force heap allocation
    	s.a[0] = 2
    	zero(&s.a)
    	if s.a[0] != 0 {
    		println("s.a[0] =", s.a[0])
    		panic("zeroing failed")
    	}
    
    	var a T // on stack
    	a[0] = 2
    	zero(&a)
    	if a[0] != 0 {
    		println("a[0] =", a[0])
    		panic("zeroing failed")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 29 01:09:55 UTC 2016
    - 1.1K bytes
    - Viewed (0)
  2. 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)
  3. test/codegen/issue38554.go

    // asmcheck
    
    // Copyright 2020 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.
    
    // Test that we are zeroing directly instead of
    // copying a large zero value. Issue 38554.
    
    package codegen
    
    func retlarge() [256]byte {
    	// amd64:-"DUFFCOPY"
    	return [256]byte{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 24 23:58:10 UTC 2020
    - 355 bytes
    - Viewed (0)
  4. test/fixedbugs/issue8947.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Some uses of zeroed constants in non-assignment
    // expressions broke with our more aggressive zeroing
    // of assignments (internal compiler errors).
    
    package main
    
    func f1() {
    	type T [2]int
    	p := T{0, 1}
    	switch p {
    	case T{0, 0}:
    		panic("wrong1")
    	case T{0, 1}:
    		// ok
    	default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 751 bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. test/fixedbugs/issue8155.go

    // run
    
    // Copyright 2014 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.
    
    // Issue 8155.
    // Alignment of stack prologue zeroing was wrong on 64-bit Native Client
    // (because of 32-bit pointers).
    
    package main
    
    import "runtime"
    
    func bad(b bool) uintptr {
    	var p **int
    	var x1 uintptr
    	x1 = 1
    	if b {
    		var x [11]*int
    		p = &x[0]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 711 bytes
    - Viewed (0)
  8. 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)
  9. test/clearfat.go

    // runoutput
    
    // Copyright 2014 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.
    
    // Check that {5,6,8,9}g/ggen.c:clearfat is zeroing the entire object.
    
    package main
    
    import (
    	"bytes"
    	"fmt"
    	"strconv"
    	"strings"
    )
    
    const ntest = 1100
    
    func main() {
    	var decls, calls bytes.Buffer
    
    	for i := 1; i <= ntest; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 31 15:08:27 UTC 2014
    - 1.1K bytes
    - Viewed (0)
  10. 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)
Back to top