Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for computeSqrThreshold (0.54 sec)

  1. src/math/big/calibrate_test.go

    	if !*calibrate {
    		return
    	}
    
    	computeKaratsubaThresholds()
    
    	// compute basicSqrThreshold where overhead becomes negligible
    	minSqr := computeSqrThreshold(10, 30, 1, 3, sqrModeMul, sqrModeBasic)
    	// compute karatsubaSqrThreshold where karatsuba is faster
    	maxSqr := computeSqrThreshold(200, 500, 10, 3, sqrModeBasic, sqrModeKaratsuba)
    	if minSqr != 0 {
    		fmt.Printf("found basicSqrThreshold = %d\n", minSqr)
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 4.6K bytes
    - Viewed (0)
Back to top