Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for max (0.2 sec)

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

    		nproc = 7
    	}
    	if setNproc {
    		var rlim syscall.Rlimit
    		if syscall.Getrlimit(nproc, &rlim) == nil {
    			max := int(rlim.Cur) / (threads + 5)
    			if attempts > max {
    				t.Logf("lowering attempts from %d to %d for RLIMIT_NPROC", attempts, max)
    				attempts = max
    			}
    		}
    	}
    
    	if os.Getenv("test18146") == "exec" {
    		runtime.GOMAXPROCS(1)
    		for n := threads; n > 0; n-- {
    			go func() {
    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/bufio/export_test.go

    // Exported for testing only.
    import (
    	"unicode/utf8"
    )
    
    var IsSpace = isSpace
    
    const DefaultBufSize = defaultBufSize
    
    func (s *Scanner) MaxTokenSize(n int) {
    	if n < utf8.UTFMax || n > 1e9 {
    		panic("bad max token size")
    	}
    	if n < len(s.buf) {
    		s.buf = make([]byte, n)
    	}
    	s.maxTokenSize = n
    }
    
    // ErrOrEOF is like Err, but returns EOF. Used to test a corner case.
    func (s *Scanner) ErrOrEOF() error {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 17:17:44 GMT 2017
    - 597 bytes
    - Viewed (0)
  3. api/go1.3.txt

    pkg syscall (freebsd-386), const AF_INET6_SDP ideal-int
    pkg syscall (freebsd-386), const AF_INET_SDP = 40
    pkg syscall (freebsd-386), const AF_INET_SDP ideal-int
    pkg syscall (freebsd-386), const AF_MAX = 42
    pkg syscall (freebsd-386), const DLT_MATCHING_MAX = 246
    pkg syscall (freebsd-386), const DLT_MPEG_2_TS = 243
    pkg syscall (freebsd-386), const DLT_MPEG_2_TS ideal-int
    pkg syscall (freebsd-386), const DLT_NFC_LLCP = 245
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Jun 02 02:45:00 GMT 2014
    - 117K bytes
    - Viewed (0)
  4. src/cmd/cgo/ast.go

    	case *ast.SliceExpr:
    		f.walk(&n.X, ctxExpr, visit)
    		if n.Low != nil {
    			f.walk(&n.Low, ctxExpr, visit)
    		}
    		if n.High != nil {
    			f.walk(&n.High, ctxExpr, visit)
    		}
    		if n.Max != nil {
    			f.walk(&n.Max, ctxExpr, visit)
    		}
    	case *ast.TypeAssertExpr:
    		f.walk(&n.X, ctxExpr, visit)
    		f.walk(&n.Type, ctxType, visit)
    	case *ast.CallExpr:
    		if context == ctxAssign2 {
    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)
  5. api/go1.13.txt

    pkg syscall (netbsd-arm64-cgo), const ETHER_HDR_LEN ideal-int
    pkg syscall (netbsd-arm64-cgo), const ETHER_MAX_LEN = 1518
    pkg syscall (netbsd-arm64-cgo), const ETHER_MAX_LEN ideal-int
    pkg syscall (netbsd-arm64-cgo), const ETHER_MAX_LEN_JUMBO = 9018
    pkg syscall (netbsd-arm64-cgo), const ETHER_MAX_LEN_JUMBO ideal-int
    pkg syscall (netbsd-arm64-cgo), const ETHERMIN = 46
    pkg syscall (netbsd-arm64-cgo), const ETHERMIN 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)
  6. src/bytes/buffer_test.go

    	var bb Buffer
    	bb.Grow(16 << 20)
    	b.SetBytes(int64(bb.Available()))
    	b.ReportAllocs()
    	for i := 0; i < b.N; i++ {
    		bb.Reset()
    		b := bb.AvailableBuffer()
    		b = b[:cap(b)] // use max capacity to simulate a large append operation
    		bb.Write(b)    // should be nearly infinitely fast
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 13:31:36 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  7. doc/go1.17_spec.html

    <p>
    As for simple slice expressions, if <code>a</code> is a pointer to an array,
    <code>a[low : high : max]</code> is shorthand for <code>(*a)[low : high : max]</code>.
    If the sliced operand is an array, it must be <a href="#Address_operators">addressable</a>.
    </p>
    
    <p>
    The indices are <i>in range</i> if <code>0 &lt;= low &lt;= high &lt;= max &lt;= cap(a)</code>,
    otherwise they are <i>out of range</i>.
    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)
  8. src/cmd/cgo/internal/test/cthread_windows.c

    static unsigned int
    goDummyCallbackThread(void* p)
    {
    	int i, max;
    
    	max = *(int*)p;
    	for(i=0; i<max; i++)
    		goDummy();
    	return 0;
    }
    
    int
    callGoInCThread(int max)
    {
    	uintptr_t thread_id;
    	thread_id = _beginthreadex(0, 0, goDummyCallbackThread, &max, 0, 0);
    	WaitForSingleObject((HANDLE)thread_id, INFINITE);
    	CloseHandle((HANDLE)thread_id);
    	return max;
    C
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed May 17 21:53:11 GMT 2023
    - 1.1K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/test/issue24161e1/main.go

    #cgo LDFLAGS: -framework CoreFoundation -framework Security
    #include <TargetConditionals.h>
    #include <CoreFoundation/CoreFoundation.h>
    #include <Security/Security.h>
    #if TARGET_OS_IPHONE == 0 && __MAC_OS_X_VERSION_MAX_ALLOWED < 101200
      typedef CFStringRef SecKeyAlgorithm;
      static CFDataRef SecKeyCreateSignature(SecKeyRef key, SecKeyAlgorithm algorithm, CFDataRef dataToSign, CFErrorRef *error){return NULL;}
    Go
    - Registered: Tue Mar 26 11:13:08 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 1K bytes
    - Viewed (0)
  10. api/go1.12.txt

    pkg syscall (openbsd-amd64-cgo), const S_IRWXO = 7
    pkg syscall (openbsd-amd64-cgo), const S_IRWXO ideal-int
    pkg syscall (windows-386), const UNIX_PATH_MAX = 108
    pkg syscall (windows-386), const UNIX_PATH_MAX ideal-int
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 02 21:21:53 GMT 2019
    - 13.5K bytes
    - Viewed (0)
Back to top