Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for left (0.18 sec)

  1. src/cmd/cgo/internal/test/issue18146.go

    		t.Skipf("skipping on %s", runtime.GOARCH)
    	}
    
    	attempts := 1000
    	threads := 4
    
    	// Restrict the number of attempts based on RLIMIT_NPROC.
    	// Tediously, RLIMIT_NPROC was left out of the syscall package,
    	// probably because it is not in POSIX.1, so we define it here.
    	// It is not defined on Solaris.
    	var nproc int
    	setNproc := true
    	switch runtime.GOOS {
    	default:
    		setNproc = false
    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)
  2. doc/go1.17_spec.html

    or be an untyped constant <a href="#Representability">representable</a> by a
    value of type <code>uint</code>.
    If the left operand of a non-constant shift expression is an untyped constant,
    it is first implicitly converted to the type it would assume if the shift expression were
    replaced by its left operand alone.
    </p>
    
    <pre>
    var a [1024]byte
    var s uint = 33
    
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/test/callback_windows.go

    			break;
    		} else {
    			RtlVirtualUnwind(0, ImageBase, ControlPc, FunctionEntry, &context, &HandlerData, &EstablisherFrame, NULL);
    		}
    
    		ControlPc = context.Rip;
    		// Check if we left the user range.
    		if (ControlPc < 0x10000) {
    			break;
    		}
    
    		BackTrace[i] = (PVOID)(ControlPc);
    	}
    	return i;
    #else
    	return 0;
    #endif
    }
    */
    import "C"
    
    import (
    	"internal/testenv"
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Nov 29 16:01:37 GMT 2023
    - 2.6K bytes
    - Viewed (0)
  4. src/cmd/asm/internal/asm/parse.go

    		p.get('.')
    		tok := p.next()
    		ext = tok.String()
    	}
    	if p.peek() == lex.LSH {
    		// parses left shift amount applied after extension: <<Amount
    		p.get(lex.LSH)
    		tok := p.get(scanner.Int)
    		amount, err := strconv.ParseInt(tok.String(), 10, 16)
    		if err != nil {
    			p.errorf("parsing left shift amount: %s", err)
    		}
    		num = int16(amount)
    	} else if p.peek() == '[' {
    		// parses an element: [Index]
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  5. doc/go_spec.html

    The non-blank variable names on the left side of <code>:=</code>
    must be <a href="#Uniqueness_of_identifiers">unique</a>.
    </p>
    
    <pre>
    field1, offset := nextField(str, 0)
    field2, offset := nextField(str, offset)  // redeclares offset
    x, y, x := 1, 2, 3                        // illegal: x repeated on left side of :=
    </pre>
    
    <p>
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 00:39:16 GMT 2024
    - 279.6K bytes
    - Viewed (0)
  6. src/bufio/bufio_test.go

    		t.Fatalf("read %d bytes; wanted %d bytes", read, n)
    	}
    
    	// The Reader should have buffered all the content from the io.Reader.
    	if n := len(eofR.buf); n != 0 {
    		t.Fatalf("got %d bytes left in bufio.Reader source; want 0 bytes", n)
    	}
    	// To prove the point, check that there are still 5 bytes available to read.
    	if n := r.Buffered(); n != 5 {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/lex/lex.go

    type ScanToken rune
    
    const (
    	// Asm defines some two-character lexemes. We make up
    	// a rune/ScanToken value for them - ugly but simple.
    	LSH          ScanToken = -1000 - iota // << Left shift.
    	RSH                                   // >> Logical right shift.
    	ARR                                   // -> Used on ARM for shift type 3, arithmetic right shift.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 18:31:05 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  8. misc/wasm/wasm_exec.js

    					return;
    				}
    
    				let id = this._ids.get(v);
    				if (id === undefined) {
    					id = this._idPool.pop();
    					if (id === undefined) {
    						id = this._values.length;
    					}
    					this._values[id] = v;
    					this._goRefCounts[id] = 0;
    					this._ids.set(v, id);
    				}
    				this._goRefCounts[id]++;
    				let typeFlag = 0;
    				switch (typeof v) {
    					case "object":
    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)
  9. src/arena/arena.go

    // arena it may have been allocated from, returning the copy. If it was not
    // allocated from an arena, it is returned untouched. This function is useful
    // to more easily let an arena-allocated value out-live its arena.
    // T must be a pointer, a slice, or a string, otherwise this function will panic.
    func Clone[T any](s T) T {
    	return runtime_arena_heapify(s).(T)
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Oct 12 20:23:36 GMT 2022
    - 4.3K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/asm/asm.go

    	// Both frameSize and argSize must be simple integers; only frameSize
    	// can be negative.
    	// The "-argSize" may be missing; if so, set it to objabi.ArgsSizeUnknown.
    	// Parse left to right.
    	op := operands[next]
    	if len(op) < 2 || op[0].ScanToken != '$' {
    		p.errorf("TEXT %s: frame size must be an immediate constant", name)
    		return
    	}
    	op = op[1:]
    	negative := false
    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)
Back to top