Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for inf2one (0.12 sec)

  1. src/math/big/int_test.go

    	p := tri(231)
    	p.Sub(p, intOne)
    	p.Sub(p, intOne) // tri(231) - 2 is a prime == 5 mod 8
    	x := new(Int).SetUint64(7)
    	for i := 0; i < b.N; i++ {
    		x.SetUint64(7)
    		x.modSqrtTonelliShanks(x, p)
    	}
    }
    
    func BenchmarkModSqrt231_5Mod8(b *testing.B) {
    	p := tri(231)
    	p.Sub(p, intOne)
    	p.Sub(p, intOne) // tri(231) - 2 is a prime == 5 mod 8
    	x := new(Int).SetUint64(7)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 58.5K bytes
    - Viewed (0)
Back to top