Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 629 for leastOf (0.15 sec)

  1. src/hash/crc32/example_test.go

    	// or LSB-first representation.
    	//
    	// LSB-first representation is a hexadecimal number with n bits, in which the
    	// most significant bit represents the coefficient of x⁰ and the least significant
    	// bit represents the coefficient of xⁿ⁻¹ (the coefficient for xⁿ is implicit).
    	//
    	// For example, CRC32-Q, as defined by the following polynomial,
    	//	x³²+ x³¹+ x²⁴+ x²²+ x¹⁶+ x¹⁴+ x⁸+ x⁷+ x⁵+ x³+ x¹+ x⁰
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 04 00:19:22 UTC 2015
    - 1K bytes
    - Viewed (0)
  2. src/runtime/metrics/histogram.go

    	// Buckets[len(Buckets)-1] is the exclusive upper bound of the maximum bucket.
    	// Hence, there are len(Buckets)-1 counts. Furthermore, len(Buckets) != 1, always,
    	// since at least two boundaries are required to describe one bucket (and 0
    	// boundaries are used to describe 0 buckets).
    	//
    	// Buckets[0] is permitted to have value -Inf and Buckets[len(Buckets)-1] is
    	// permitted to have value Inf.
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 08 03:43:44 UTC 2021
    - 1.3K bytes
    - Viewed (0)
  3. src/runtime/race/testdata/pool_test.go

    package race_test
    
    import (
    	"sync"
    	"testing"
    	"time"
    )
    
    func TestRacePool(t *testing.T) {
    	// Pool randomly drops the argument on the floor during Put.
    	// Repeat so that at least one iteration gets reuse.
    	for i := 0; i < 10; i++ {
    		c := make(chan int)
    		p := &sync.Pool{New: func() any { return make([]byte, 10) }}
    		x := p.Get().([]byte)
    		x[0] = 1
    		p.Put(x)
    		go func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 933 bytes
    - Viewed (0)
  4. test/maymorestack.go

    	} else if count != wantCount {
    		println(count, "!=", wantCount)
    		panic("wrong number of calls to mayMoreStack")
    	}
    }
    
    //go:noinline
    func anotherFunc(n int) {
    	// Trigger a stack growth on at least some calls to
    	// anotherFunc to test that mayMoreStack is called outside the
    	// morestack loop. It's also important that it is called
    	// before (not after) morestack, but that's hard to test.
    	var x [1 << 10]byte
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 05 00:52:06 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/testsanitizers/testdata/msan7.go

    /*
    #include <stdint.h>
    #include <stdlib.h>
    
    // T is a C struct with alignment padding after b.
    // The padding bytes are not considered initialized by MSAN.
    // It is big enough to be passed on stack in C ABI (and least
    // on AMD64).
    typedef struct { char b; uintptr_t x, y; } T;
    
    extern void F(T);
    
    // Use weak as a hack to permit defining a function even though we use export.
    void CF(int x) __attribute__ ((weak));
    void CF(int x) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 834 bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/cover_sync_atomic_import.txt

    # business if we try "go test -cover" in atomic mode targeting
    # sync/atomic itself (see #57445). Just a short test run is needed
    # since we're mainly interested in making sure the test builds and can
    # execute at least one test.
    
    go test -short -covermode=atomic -run=TestStoreInt64 sync/atomic
    go test -short -covermode=atomic -run=TestAnd8 internal/runtime/atomic
    
    # Skip remainder if no race detector support.
    [!race] skip
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 00:18:30 UTC 2024
    - 1011 bytes
    - Viewed (0)
  7. test/fixedbugs/issue14164.dir/a.go

    // defined via an embedded interface t. The compiler
    // always flattens embedded interfaces so there should
    // be no difference between F and G. Alas, currently
    // G is not inlineable (at least via export data), so
    // the issue is moot, here.
    func G(x interface{}) bool {
    	type t0 interface {
    		f()
    	}
    	_, ok := x.(interface {
    		t0
    	})
    	return ok
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 01 20:29:19 UTC 2016
    - 1.1K bytes
    - Viewed (0)
  8. pkg/test/framework/resource/environment.go

    	return nil, nil
    }
    
    // Environment is the ambient environment that the test runs in.
    type Environment interface {
    	Resource
    
    	EnvironmentName() string
    
    	// Clusters in this Environment. There will always be at least one.
    	Clusters() cluster.Clusters
    
    	// AllClusters in this Environment, including external control planes.
    	AllClusters() cluster.Clusters
    	IsMultiCluster() bool
    	IsMultiNetwork() bool
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 27 15:52:38 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  9. src/internal/singleflight/singleflight_test.go

    				t.Errorf("Do error: %v", err)
    				return
    			}
    			if s, _ := v.(string); s != "bar" {
    				t.Errorf("Do = %T %v; want %q", v, v, "bar")
    			}
    		}()
    	}
    	wg1.Wait()
    	// At least one goroutine is in fn now and all of them have at
    	// least reached the line before the Do.
    	c <- "bar"
    	wg2.Wait()
    	if got := calls.Load(); got <= 0 || got >= n {
    		t.Errorf("number of calls = %d; want over 0 and less than %d", got, n)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 29 22:21:50 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  10. src/runtime/memclr_arm64.s

    	// It is not meaningful to use ZVA if the block size is less than 64,
    	// so make sure that n is greater than or equal to 64
    	CMP	$63, R1
    	BLE	tail63
    
    	CMP	$128, R1
    	// Ensure n is at least 128 bytes, so that there is enough to copy after
    	// alignment.
    	BLT	no_zva
    	// Check if ZVA is allowed from user code, and if so get the block size
    	MOVW	block_size<>(SB), R5
    	TBNZ	$31, R5, no_zva
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 18 18:26:13 UTC 2022
    - 3.6K bytes
    - Viewed (0)
Back to top