Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 18 of 18 for Case (0.14 sec)

  1. src/cmd/asm/internal/asm/asm.go

    	switch valueAddr.Type {
    	case obj.TYPE_CONST:
    		switch sz {
    		case 1, 2, 4, 8:
    			nameAddr.Sym.WriteInt(p.ctxt, nameAddr.Offset, int(sz), valueAddr.Offset)
    		default:
    			p.errorf("bad int size for DATA argument: %d", sz)
    		}
    	case obj.TYPE_FCONST:
    		switch sz {
    		case 4:
    			nameAddr.Sym.WriteFloat32(p.ctxt, nameAddr.Offset, float32(valueAddr.Val.(float64)))
    		case 8:
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 25.3K bytes
    - Viewed (0)
  2. src/archive/tar/writer_test.go

    			return ok1 && ok2
    		}
    		return x == y
    	}
    	for _, v := range vectors {
    		t.Run(path.Base(v.file), func(t *testing.T) {
    			const maxSize = 10 << 10 // 10KiB
    			buf := new(bytes.Buffer)
    			tw := NewWriter(iotest.TruncateWriter(buf, maxSize))
    
    			for i, tf := range v.tests {
    				switch tf := tf.(type) {
    				case testHeader:
    					err := tw.WriteHeader(&tf.hdr)
    					if !equalError(err, tf.wantErr) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K bytes
    - Viewed (0)
  3. src/cmd/asm/internal/asm/endtoend_test.go

    		switch len(parts) {
    		default:
    			t.Errorf("%s:%d: unable to understand comments: %s", input, lineno, line)
    		case 1:
    			// no comment
    		case 2:
    			// might be printed form or hex
    			note := strings.TrimSpace(parts[1])
    			if isHexes(note) {
    				hexes = note
    			} else {
    				printed = note
    			}
    		case 3:
    			// printed form, then hex
    			printed = strings.TrimSpace(parts[1])
    			hexes = strings.TrimSpace(parts[2])
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Dec 07 18:42:59 GMT 2023
    - 11.6K bytes
    - Viewed (0)
  4. src/archive/zip/writer.go

    	// valid UTF-8 string, then we set the UTF-8 bit.
    	//
    	// For the case, where the user explicitly wants to specify the encoding
    	// as UTF-8, they will need to set the flag bit themselves.
    	utf8Valid1, utf8Require1 := detectUTF8(fh.Name)
    	utf8Valid2, utf8Require2 := detectUTF8(fh.Comment)
    	switch {
    	case fh.NonUTF8:
    		fh.Flags &^= 0x800
    	case (utf8Require1 || utf8Require2) && (utf8Valid1 && utf8Valid2):
    		fh.Flags |= 0x800
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 04 14:28:57 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  5. doc/godebug.md

    The defaults that will be compiled into a main package
    are reported by the command:
    
    {{raw `
    	go list -f '{{.DefaultGODEBUG}}' my/main/package
    `}}
    
    Only differences from the base Go toolchain defaults are reported.
    
    When testing a package, `//go:debug` lines in the `*_test.go`
    files are treated as directives for the test's main package.
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Tue Apr 16 17:29:58 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  6. doc/go_mem.html

    This means that races on multiword data structures
    can lead to inconsistent values not corresponding to a single write.
    When the values depend on the consistency
    of internal (pointer, length) or (pointer, type) pairs,
    as can be the case for interface values, maps,
    slices, and strings in most Go implementations,
    such races can in turn lead to arbitrary memory corruption.
    </p>
    
    <p>
    Examples of incorrect synchronization are given in the
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Mon Mar 04 15:54:42 GMT 2024
    - 26.6K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/asm/testdata/riscv64.s

    	AMOMAXUD	X5, (X6), X7			// af3353e6
    	AMOMINW		X5, (X6), X7			// af235386
    	AMOMIND		X5, (X6), X7			// af335386
    	AMOMINUW	X5, (X6), X7			// af2353c6
    	AMOMINUD	X5, (X6), X7			// af3353c6
    
    	// 10.1: Base Counters and Timers
    	RDCYCLE		X5				// f32200c0
    	RDTIME		X5				// f32210c0
    	RDINSTRET	X5				// f32220c0
    
    	// 11.5: Single-Precision Load and Store Instructions
    	FLW	(X5), F0				// 07a00200
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 22 04:42:21 GMT 2024
    - 16.7K bytes
    - Viewed (1)
  8. src/archive/tar/tar_test.go

    		if err != nil {
    			t.Error(err)
    			continue
    		}
    		if strings.Contains(fi.Name(), "/") {
    			t.Errorf("FileInfo of %q contains slash: %q", v.h.Name, fi.Name())
    		}
    		name := path.Base(v.h.Name)
    		if fi.IsDir() {
    			name += "/"
    		}
    		if got, want := h2.Name, name; got != want {
    			t.Errorf("i=%d: Name: got %v, want %v", i, got, want)
    		}
    		if got, want := h2.Size, v.h.Size; got != want {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24K bytes
    - Viewed (0)
Back to top