Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for exercise (0.31 sec)

  1. src/math/big/int_test.go

    			t.Errorf("#%d got (%s, %s) want (%s, %s)", i, q, r, expectedQ, expectedR)
    		}
    	}
    }
    
    func TestQuoStepD6(t *testing.T) {
    	// See Knuth, Volume 2, section 4.3.1, exercise 21. This code exercises
    	// a code path which only triggers 1 in 10^{-19} cases.
    
    	u := &Int{false, nat{0, 0, 1 + 1<<(_W-1), _M ^ (1 << (_W - 1))}}
    	v := &Int{false, nat{5, 2 + 1<<(_W-1), 1 << (_W - 1)}}
    
    	r := new(Int)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 58.5K bytes
    - Viewed (0)
  2. src/runtime/mprof.go

    			prof.cyclesLost += cycles
    			return
    		} else {
    			prof.cyclesLost += prev
    		}
    	}
    	// Saving the *mutex as a uintptr is safe because:
    	//  - lockrank_on.go does this too, which gives it regular exercise
    	//  - the lock would only move if it's stack allocated, which means it
    	//      cannot experience multi-M contention
    	prof.pending = uintptr(unsafe.Pointer(l))
    	prof.cycles = cycles
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  3. gradle/verification-metadata.xml

       You should then edit the origin to be "Verified". Note that editing those entries means you
       verified that the checksum matches.
    
       If the generation above did not resolve your issue, a task might be missing that exercise the
       dependency but is not covered by the current resolveAllDependencies. Edit the task definition to
       add the required task dependency.
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 21 22:30:36 UTC 2024
    - 90.1K bytes
    - Viewed (0)
  4. src/runtime/mgc.go

    //
    // The algorithm's intellectual heritage includes Dijkstra's on-the-fly algorithm, see
    // Edsger W. Dijkstra, Leslie Lamport, A. J. Martin, C. S. Scholten, and E. F. M. Steffens. 1978.
    // On-the-fly garbage collection: an exercise in cooperation. Commun. ACM 21, 11 (November 1978),
    // 966-975.
    // For journal quality proofs that these steps are complete, correct, and terminate see
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62K bytes
    - Viewed (0)
  5. src/runtime/mbitmap.go

    		}
    
    		// Write out the header.
    		*header = gctyp
    		scanSize = span.elemsize
    	}
    
    	if doubleCheck {
    		doubleCheckHeapPointers(x, dataSize, gctyp, header, span)
    
    		// To exercise the less common path more often, generate
    		// a random interior pointer and make sure iterating from
    		// that point works correctly too.
    		maxIterBytes := span.elemsize
    		if header == nil {
    			maxIterBytes = dataSize
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 60K bytes
    - Viewed (0)
  6. src/runtime/pprof/pprof_test.go

    					// goroutines in this process (in the allgs slice).
    					runtime.Gosched()
    				}
    				if i == 0 {
    					ready.Done()
    				}
    			}
    		}()
    
    		// Short-lived goroutines exercise different code paths (goroutines with
    		// status _Gdead, for instance). This churn doesn't have behavior that
    		// we can test directly, but does help to shake out data races.
    		ready.Add(1)
    		var churn func(i int)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
  7. src/os/os_test.go

    	defer wg.Wait()
    	defer close(done)
    
    	for i := 0; i < N; i++ {
    		wg.Add(1)
    		go func(i int) {
    			defer wg.Done()
    			// Lock half the goroutines in their own operating system
    			// thread to exercise more scheduler possibilities.
    			if i%2 == 1 {
    				// On Plan 9, after calling LockOSThread, the goroutines
    				// run on different processes which don't share the working
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
  8. src/net/http/fs_test.go

    	if s := string(b); s != string(contents) {
    		t.Errorf("for path %q got %q, want %q", filename, s, contents)
    	}
    	res.Body.Close()
    }
    
    func TestServeFileZippingResponseWriter(t *testing.T) {
    	// This test exercises a pattern which is incorrect,
    	// but has been observed enough in the world that we don't want to break it.
    	//
    	// The server is setting "Content-Encoding: gzip",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 49.9K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/_gen/PPC64.rules

    //
    // Note, y is always non-negative.
    //
    // Note, ISELZ is intentionally not used in lower. Where possible, ISEL is converted to ISELZ in late lower
    // after all the ISEL folding rules have been exercised.
    
    ((Rsh64U|Lsh64)x64 <t> x y)  => (ISEL [0] (S(R|L)D <t> x y) (MOVDconst [0])        (CMPUconst y [64]))
    ((Rsh64U|Lsh64)x32 <t> x y)  => (ISEL [0] (S(R|L)D <t> x y) (MOVDconst [0])        (CMPWUconst y [64]))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 53.2K bytes
    - Viewed (0)
  10. src/runtime/asm_amd64.s

    	// The above code could be used directly if already on a system stack,
    	// but then the only path through this code would be a rare case on Solaris.
    	// Using this code for all "already on system stack" calls exercises it more,
    	// which should help keep it correct.
    	SUBQ	$16, SP
    	ANDQ	$~15, SP
    	MOVQ	$0, 8(SP)		// where above code stores g, in case someone looks during debugging
    	MOVQ	DX, 0(SP)	// save original stack pointer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 11 20:38:24 UTC 2024
    - 60.4K bytes
    - Viewed (0)
Back to top