Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for basicSqr (0.13 sec)

  1. src/math/big/nat.go

    			addAt(z, t, i+k)
    		}
    
    		putNat(tp)
    	}
    
    	return z.norm()
    }
    
    // basicSqr sets z = x*x and is asymptotically faster than basicMul
    // by about a factor of 2, but slower for small arguments due to overhead.
    // Requirements: len(x) > 0, len(z) == 2*len(x)
    // The (non-normalized) result is placed in z.
    func basicSqr(z, x nat) {
    	n := len(x)
    	tp := getNat(2 * n)
    	t := *tp // temporary variable to hold the products
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:31:58 UTC 2024
    - 31.7K bytes
    - Viewed (0)
Back to top