Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 266 for imprecise (0.3 sec)

  1. src/internal/diff/diff.go

    // the “patience sorting” algorithm, itself named for a solitaire card game.
    // We avoid that name for two reasons. First, the name has been used
    // for a few different variants of the algorithm, so it is imprecise.
    // Second, the name is frequently interpreted as meaning that you have
    // to wait longer (to be patient) for the diff, meaning that it is a slower algorithm,
    // when in fact the algorithm is faster than the standard one.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 14:13:04 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  2. src/runtime/mksizeclasses.go

    	// fit typical Go idioms.
    	N := bits.Len(uint(max))
    	var F int
    	if powerOfTwo(d) {
    		F = int(math.Log2(float64(d)))
    		if d != 1<<F {
    			panic("imprecise log2")
    		}
    	} else {
    		for L := 0; ; L++ {
    			if d <= ((1<<(N+L))%d)+(1<<L) {
    				F = N + L
    				break
    			}
    		}
    	}
    
    	// Also, noted in the paper, F is the smallest number of fractional
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:31:27 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

      /**
       * Prunes any leaked calls and then returns the number of remaining live calls on [connection].
       * Calls are leaked if the connection is tracking them but the application code has abandoned
       * them. Leak detection is imprecise and relies on garbage collection.
       */
      private fun pruneAndGetAllocationCount(
        connection: RealConnection,
        now: Long,
      ): Int {
        connection.lock.assertHeld()
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  4. src/cmd/internal/obj/link.go

    	// MakeTypelink means that the type should have an entry in the typelink table.
    	AttrMakeTypelink
    
    	// ReflectMethod means the function may call reflect.Type.Method or
    	// reflect.Type.MethodByName. Matching is imprecise (as reflect.Type
    	// can be used through a custom interface), so ReflectMethod may be
    	// set in some cases when the reflect package is not called.
    	//
    	// Used by the linker to determine what methods can be pruned.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  5. src/runtime/traceback.go

    		// So for GC stack traversal, we can safely ignore SPWRITE for the innermost frame,
    		// but farther up the stack we'd better not find any.
    		// This is somewhat imprecise because we're just guessing that we're in the stack
    		// growth check. It would be better if SPWRITE were encoded in the spdelta
    		// table so we would know for sure that we were still in safe code.
    		//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  6. src/time/time_test.go

    		t.Errorf("round-trip failed: %d => %q => %d, %v", min0, min0.String(), min1, err)
    	}
    
    	for i := 0; i < 100; i++ {
    		// Resolutions finer than milliseconds will result in
    		// imprecise round-trips.
    		d0 := Duration(rand.Int31()) * Millisecond
    		s := d0.String()
    		d1, err := ParseDuration(s)
    		if err != nil || d0 != d1 {
    			t.Errorf("round-trip failed: %d => %q => %d, %v", d0, s, d1, err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:13:47 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  7. src/cmd/link/internal/ld/dwarf.go

    			spdelta := int64(pcsp.Value)
    			if !haslr {
    				// Return address has been pushed onto stack.
    				spdelta += int64(d.arch.PtrSize)
    			}
    
    			if haslr && !fi.TopFrame() {
    				// TODO(bryanpkc): This is imprecise. In general, the instruction
    				// that stores the return address to the stack frame is not the
    				// same one that allocates the frame.
    				if pcsp.Value > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:25:18 UTC 2024
    - 72.4K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/server/mux/pathrecorder_test.go

    	http.Get(s.URL + "/publicPrefix/something")
    	assert.Equal(t, 2, publicPrefixCount)
    	http.Get(s.URL + "/publicPrefix/but-more-precise")
    	assert.Equal(t, 3, publicPrefixCount)
    	http.Get(s.URL + "/publicPrefix/but-more-precise/")
    	assert.Equal(t, 1, precisePrefixCount)
    	http.Get(s.URL + "/publicPrefix/but-more-precise/more-stuff")
    	assert.Equal(t, 2, precisePrefixCount)
    
    	http.Get(s.URL + "/publicPrefix/exactmatch")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 26 16:15:13 UTC 2017
    - 4.4K bytes
    - Viewed (0)
  9. guava/src/com/google/common/math/ToDoubleRounder.java

    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    abstract class ToDoubleRounder<X extends Number & Comparable<X>> {
      /**
       * Returns x rounded to either the greatest double less than or equal to the precise value of x,
       * or the least double greater than or equal to the precise value of x.
       */
      abstract double roundToDoubleArbitrarily(X x);
    
      /** Returns the sign of x: either -1, 0, or 1. */
      abstract int sign(X x);
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  10. test/fixedbugs/issue5493.go

    		atomic.AddInt64(&count, -1)
    	})
    	go f2()
    	return nil
    }
    
    func main() {
    	// Does not work with gccgo, due to partially conservative GC.
    	// Try to enable when we have fully precise GC.
    	if runtime.Compiler == "gccgo" {
    		return
    	}
    	count = N
    	var wg sync.WaitGroup
    	wg.Add(N)
    	for i := 0; i < N; i++ {
    		go func() {
    			run()
    			wg.Done()
    		}()
    	}
    	wg.Wait()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 05 21:11:31 UTC 2021
    - 953 bytes
    - Viewed (0)
Back to top