Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 61 for Number (0.29 sec)

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

    	}
    
    	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.
    	// 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
    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. src/cmd/cgo/internal/swig/swig_test.go

    		t.Skipf("failed to get swig version:%s\n%s", err, string(out))
    	}
    
    	re := regexp.MustCompile(`[vV]ersion +(\d+)([.]\d+)?([.]\d+)?`)
    	matches := re.FindSubmatch(out)
    	if matches == nil {
    		// Can't find version number; hope for the best.
    		t.Logf("failed to find swig version, continuing")
    		return
    	}
    
    	var parseError error
    	atoi := func(s string) int {
    		x, err := strconv.Atoi(s)
    		if err != nil && parseError == nil {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:07 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  3. doc/go1.17_spec.html

    The number of operands on the left
    hand side must match the number of values.  For instance, if
    <code>f</code> is a function returning two values,
    </p>
    
    <pre>
    x, y = f()
    </pre>
    
    <p>
    assigns the first value to <code>x</code> and the second to <code>y</code>.
    In the second form, the number of operands on the left must equal the number
    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)
  4. misc/wasm/wasm_exec.js

    					return f;
    				}
    
    				const id = this.mem.getUint32(addr, true);
    				return this._values[id];
    			}
    
    			const storeValue = (addr, v) => {
    				const nanHead = 0x7FF80000;
    
    				if (typeof v === "number" && v !== 0) {
    					if (isNaN(v)) {
    						this.mem.setUint32(addr + 4, nanHead, true);
    						this.mem.setUint32(addr, 0, true);
    						return;
    					}
    					this.mem.setFloat64(addr, v, true);
    					return;
    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)
  5. src/cmd/cgo/doc.go

    An error on not-int-const:1 indicates that foo is not an integer constant.
    An error on not-num-const:1 indicates that foo is not a number constant.
    An error on not-str-lit:1 indicates that foo is not a string literal.
    An error on not-signed-int-const:1 indicates that foo is not a signed integer constant.
    
    The line number specifies the name involved. In the example, 1 is foo.
    
    Next, cgo must learn the details of each type, variable, function, or
    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)
  6. src/bufio/bufio_test.go

    		r.Seek(0, io.SeekStart)
    		buf.Reset(r)
    
    		_, err := buf.ReadString('\n')
    		if err != nil {
    			t.Fatal(err)
    		}
    	})
    	if allocs != 1 {
    		t.Errorf("Unexpected number of allocations, got %f, want 1", allocs)
    	}
    }
    
    func TestWriter(t *testing.T) {
    	var data [8192]byte
    
    	for i := 0; i < len(data); i++ {
    		data[i] = byte(' ' + i%('~'-' '))
    	}
    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/archive/zip/reader_test.go

    	}
    	r, err := NewReader(bytes.NewReader(b.Bytes()), int64(b.Len()))
    	if err != nil {
    		t.Fatalf("NewReader failed: %s", err)
    	}
    	if len(r.File) != 5 {
    		t.Errorf("Archive has unexpected number of files, got %d, want 5", len(r.File))
    	}
    }
    
    func TestCVE202139293(t *testing.T) {
    	// directory size is so large, that the check in Reader.init
    	// overflows when subtracting from the archive size, causing
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  8. src/cmd/cgo/ast.go

    	f.walk(ast2, ctxProg, (*File).saveExport2)
    
    	f.Comments = ast1.Comments
    	f.AST = ast2
    }
    
    // Like ast.CommentGroup's Text method but preserves
    // leading blank lines, so that line numbers line up.
    func commentText(g *ast.CommentGroup) string {
    	var pieces []string
    	for _, com := range g.List {
    		c := com.Text
    		// Remove comment markers.
    		// The parser has given us exactly the comment text.
    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)
  9. src/archive/tar/strconv_test.go

    		{"0.123456789abcdef", time.Time{}, false},
    		{"foo", time.Time{}, false},
    		{"\x00", time.Time{}, false},
    		{"đŸĩ𝟴đŸŗ𝟲𝟱.đŸ°đŸ¯đŸŽđŸ­đŸŦ", time.Time{}, false}, // Unicode numbers (U+1D7EC to U+1D7F5)
    		{"98765īš’43210", time.Time{}, false}, // Unicode period (U+FE52)
    	}
    
    	for _, v := range vectors {
    		ts, err := parsePAXTime(v.in)
    		ok := (err == nil)
    		if v.ok != ok {
    			if v.ok {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 09 05:28:50 GMT 2021
    - 14K bytes
    - Viewed (0)
  10. api/go1.13.txt

    pkg syscall (netbsd-arm64-cgo), const ETHERTYPE_ALPHA = 33098
    pkg syscall (netbsd-arm64-cgo), const ETHERTYPE_ALPHA ideal-int
    pkg syscall (netbsd-arm64-cgo), const ETHERTYPE_AMBER = 24584
    pkg syscall (netbsd-arm64-cgo), const ETHERTYPE_AMBER ideal-int
    pkg syscall (netbsd-arm64-cgo), const ETHERTYPE_AMOEBA = 33093
    pkg syscall (netbsd-arm64-cgo), const ETHERTYPE_AMOEBA ideal-int
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Aug 08 18:44:16 GMT 2019
    - 452.6K bytes
    - Viewed (0)
Back to top