Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for computeKaratsubaThresholds (0.18 sec)

  1. src/math/big/calibrate_test.go

    const (
    	sqrModeMul       = "mul(x, x)"
    	sqrModeBasic     = "basicSqr(x)"
    	sqrModeKaratsuba = "karatsubaSqr(x)"
    )
    
    func TestCalibrate(t *testing.T) {
    	if !*calibrate {
    		return
    	}
    
    	computeKaratsubaThresholds()
    
    	// compute basicSqrThreshold where overhead becomes negligible
    	minSqr := computeSqrThreshold(10, 30, 1, 3, sqrModeMul, sqrModeBasic)
    	// compute karatsubaSqrThreshold where karatsuba is faster
    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