Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for maps (0.14 sec)

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

    	register := make(map[string]int16)
    	// Create maps for easy lookup of instruction names etc.
    	// Note that there is no list of names as there is for x86.
    	for i := mips.REG_R0; i <= mips.REG_R31; i++ {
    		register[obj.Rconv(i)] = int16(i)
    	}
    
    	for i := mips.REG_F0; i <= mips.REG_F31; i++ {
    		register[obj.Rconv(i)] = int16(i)
    	}
    	for i := mips.REG_M0; i <= mips.REG_M31; i++ {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Mar 21 06:51:28 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  2. doc/go1.17_spec.html

    <a href="#Deletion_of_map_elements"><code>delete</code></a> built-in function.
    </p>
    <p>
    A new, empty map value is made using the built-in
    function <a href="#Making_slices_maps_and_channels"><code>make</code></a>,
    which takes the map type and an optional capacity hint as arguments:
    </p>
    
    <pre>
    make(map[string]int)
    make(map[string]int, 100)
    </pre>
    
    <p>
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  3. src/builtin/builtin.go

    func imag(c ComplexType) FloatType
    
    // The clear built-in function clears maps and slices.
    // For maps, clear deletes all entries, resulting in an empty map.
    // For slices, clear sets all elements up to the length of the slice
    // to the zero value of the respective element type. If the argument
    // type is a type parameter, the type parameter's type set must
    // contain only map or slice types, and clear performs the operation
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/issue18146.go

    		t.Skip("skipping in short mode")
    	}
    
    	if runtime.GOOS == "darwin" || runtime.GOOS == "ios" {
    		t.Skipf("skipping flaky test on %s; see golang.org/issue/18202", runtime.GOOS)
    	}
    
    	if runtime.GOARCH == "mips" || runtime.GOARCH == "mips64" {
    		t.Skipf("skipping on %s", runtime.GOARCH)
    	}
    
    	attempts := 1000
    	threads := 4
    
    	// Restrict the number of attempts based on RLIMIT_NPROC.
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Sep 05 23:35:32 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  5. src/cmd/api/testdata/src/pkg/p1/p1.go

    func Now() Time {
    	var now Time
    	return now
    }
    
    var x = &S{
    	Public:     nil,
    	private:    nil,
    	PublicTime: Now(),
    }
    
    var parenExpr = (1 + 5)
    
    var funcLit = func() {}
    
    var m map[string]int
    
    var chanVar chan int
    
    var ifaceVar any = 5
    
    var assertVar = ifaceVar.(int)
    
    var indexVar = m["foo"]
    
    var Byte byte
    var ByteFunc func(byte) rune
    
    type ByteStruct struct {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Dec 02 16:29:41 GMT 2022
    - 3.3K bytes
    - Viewed (0)
  6. misc/wasm/wasm_exec.js

    					console.warn("exit code:", code);
    				}
    			};
    			this._exitPromise = new Promise((resolve) => {
    				this._resolveExitPromise = resolve;
    			});
    			this._pendingEvent = null;
    			this._scheduledTimeouts = new Map();
    			this._nextCallbackTimeoutID = 1;
    
    			const setInt64 = (addr, v) => {
    				this.mem.setUint32(addr + 0, v, true);
    				this.mem.setUint32(addr + 4, Math.floor(v / 4294967296), true);
    			}
    
    JavaScript
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon May 22 17:47:47 GMT 2023
    - 16.3K bytes
    - Viewed (1)
  7. src/cmd/cgo/ast.go

    	ast1 := parse(abspath, src, parser.SkipObjectResolution|parser.ParseComments)
    	ast2 := parse(abspath, src, parser.SkipObjectResolution)
    
    	f.Package = ast1.Name.Name
    	f.Name = make(map[string]*Name)
    	f.NamePos = make(map[*Name]token.Pos)
    
    	// In ast1, find the import "C" line and get any extra C preamble.
    	sawC := false
    	for _, decl := range ast1.Decls {
    		switch decl := decl.(type) {
    		case *ast.GenDecl:
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jun 07 16:54:27 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  8. src/cmd/asm/internal/asm/operand_test.go

    }
    
    func TestPPC64OperandParser(t *testing.T) {
    	parser := newParser("ppc64")
    	testOperandParser(t, parser, ppc64OperandTests)
    }
    
    func TestMIPSOperandParser(t *testing.T) {
    	parser := newParser("mips")
    	testOperandParser(t, parser, mipsOperandTests)
    }
    
    func TestMIPS64OperandParser(t *testing.T) {
    	parser := newParser("mips64")
    	testOperandParser(t, parser, mips64OperandTests)
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 18:31:05 GMT 2023
    - 23.9K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/asm/testdata/amd64enc.s

    	MAXPD X11, X11                          // 66450f5fdb
    	MAXPS (BX), X2                          // 0f5f13
    	MAXPS (R11), X2                         // 410f5f13
    	MAXPS X2, X2                            // 0f5fd2
    	MAXPS X11, X2                           // 410f5fd3
    	MAXPS (BX), X11                         // 440f5f1b
    	MAXPS (R11), X11                        // 450f5f1b
    	MAXPS X2, X11                           // 440f5fda
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 08 21:38:44 GMT 2021
    - 581.9K bytes
    - Viewed (0)
  10. src/cmd/cgo/doc.go

    the type of the pointer.
    
    Note that values of some Go types, other than the type's zero value,
    always include Go pointers. This is true of string, slice, interface,
    channel, map, and function types. A pointer type may hold a Go pointer
    or a C pointer. Array and struct types may or may not include Go
    pointers, depending on the element types. All the discussion below
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
Back to top