Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for sounds (0.12 sec)

  1. src/cmd/compile/internal/ssa/prove.go

    //
    // By far, the most common redundant pair are generated by bounds checking.
    // For example for the code:
    //
    //	a[i] = 4
    //	foo(a[i])
    //
    // The compiler will generate the following code:
    //
    //	if i >= len(a) {
    //	    panic("not in bounds")
    //	}
    //	a[i] = 4
    //	if i >= len(a) {
    //	    panic("not in bounds")
    //	}
    //	foo(a[i])
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:30:21 UTC 2024
    - 48.9K bytes
    - Viewed (0)
  2. src/index/suffixarray/sais2.go

    		if x > 0 {
    			x--
    			saX = sa[x] // TODO bounds check
    			c = text[saX]
    			b = bucket[c] - 1
    			bucket[c] = b
    		}
    	}
    }
    
    func induceL_8_64(text []byte, sa, freq, bucket []int64) {
    	// Initialize positions for left side of character buckets.
    	bucketMin_8_64(text, freq, bucket)
    	bucket = bucket[:256] // eliminate bounds check for bucket[cB] below
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 18 23:57:18 UTC 2024
    - 52.3K bytes
    - Viewed (0)
  3. src/runtime/mheap.go

    	iter := &span.specials
    	found := false
    	for {
    		s := *iter
    		if s == nil {
    			break
    		}
    		if offset == uintptr(s.offset) && kind == s.kind {
    			found = true
    			break
    		}
    		if offset < uintptr(s.offset) || (offset == uintptr(s.offset) && kind < s.kind) {
    			break
    		}
    		iter = &s.next
    	}
    	return iter, found
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 78K bytes
    - Viewed (0)
  4. src/runtime/pprof/pprof_test.go

    			// loop-i goroutine should be present in the profile too.
    			counts := make(map[string]int)
    			for _, s := range p.Sample {
    				label := s.Label[t.Name()+"-loop-i"]
    				if len(label) > 0 {
    					counts[label[0]]++
    				}
    			}
    			for j, max := 0, len(counts)-1; j <= max; j++ {
    				n := counts[fmt.Sprint(j)]
    				if n == 1 || (n == 2 && j == max) {
    					continue
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
  5. src/time/time.go

    }
    
    // Round returns the result of rounding d to the nearest multiple of m.
    // The rounding behavior for halfway values is to round away from zero.
    // If the result exceeds the maximum (or minimum)
    // value that can be stored in a [Duration],
    // Round returns the maximum (or minimum) duration.
    // If m <= 0, Round returns d unchanged.
    func (d Duration) Round(m Duration) Duration {
    	if m <= 0 {
    		return d
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 50.7K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/api_test.go

    			}()
    		}
    		wg.Wait()
    
    		if counts[0] != counts[1] {
    			t.Errorf("mismatching method counts for %s: %d vs %d", inst, counts[0], counts[1])
    			continue
    		}
    		for i := 0; i < counts[0]; i++ {
    			if m0, m1 := methods[0][i], methods[1][i]; m0 != m1 {
    				t.Errorf("mismatching methods for %s: %s vs %s", inst, m0, m1)
    			}
    		}
    	}
    }
    
    func TestInstantiateErrors(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  7. src/go/types/api_test.go

    			}()
    		}
    		wg.Wait()
    
    		if counts[0] != counts[1] {
    			t.Errorf("mismatching method counts for %s: %d vs %d", inst, counts[0], counts[1])
    			continue
    		}
    		for i := 0; i < counts[0]; i++ {
    			if m0, m1 := methods[0][i], methods[1][i]; m0 != m1 {
    				t.Errorf("mismatching methods for %s: %s vs %s", inst, m0, m1)
    			}
    		}
    	}
    }
    
    func TestInstantiateErrors(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  8. src/runtime/mgcpacer.go

    	gcPercentHeapGoal atomic.Uint64
    
    	// sweepDistMinTrigger is the minimum trigger to ensure a minimum
    	// sweep distance.
    	//
    	// This bound is also special because it applies to both the trigger
    	// *and* the goal (all other trigger bounds must be based *on* the goal).
    	//
    	// It is computed ahead of time, at commit time. The theory is that,
    	// absent a sudden change to a parameter like gcPercent, the trigger
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 55.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td

      let summary = "Op used to indicate to the compiler and runtime the static bounds of a tensor.";
      let description = [{
    The information passed through this op can possibly be used by the compiler and
    runtime to perform certain optimizations such as more efficient DMAs. The
    bounds passed via this op should be considered advisory only, and depending on
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 04:08:35 UTC 2024
    - 90.5K bytes
    - Viewed (0)
  10. src/time/time_test.go

    			return false
    		}
    
    		// To round, add d back if remainder r > d/2 or r == exactly d/2.
    		// The commented out code would round half to even instead of up,
    		// but that makes it time-zone dependent, which is a bit strange.
    		if r > int64(d)/2 || r+r == int64(d) /*&& bq.Bit(0) == 1*/ {
    			t1 = t1.Add(d)
    		}
    
    		// Check that time.Round works.
    		if rnd := t0.Round(d); rnd != t1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:13:47 UTC 2024
    - 56.5K bytes
    - Viewed (0)
Back to top