Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for inf2one (0.29 sec)

  1. src/cmd/compile/internal/ir/const.go

    	switch {
    	case typ.IsInteger():
    		val = intOne
    	case typ.IsFloat():
    		val = floatOne
    	case typ.IsComplex():
    		val = complexOne
    	default:
    		base.FatalfAt(pos, "%v cannot represent 1", typ)
    	}
    
    	return NewBasicLit(pos, typ, val)
    }
    
    var (
    	intOne     = constant.MakeInt64(1)
    	floatOne   = constant.ToFloat(intOne)
    	complexOne = constant.ToComplex(intOne)
    )
    
    const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 18:53:26 UTC 2023
    - 4K bytes
    - Viewed (0)
  2. src/math/big/int.go

    	//
    	// z = 1
    	// i := 0
    	// for i < k {
    	//     z *= n-i
    	//     i++
    	//     z /= i
    	// }
    	var N, K, i, t Int
    	N.SetInt64(n)
    	K.SetInt64(k)
    	z.Set(intOne)
    	for i.Cmp(&K) < 0 {
    		z.Mul(z, t.Sub(&N, &i))
    		i.Add(&i, intOne)
    		z.Quo(z, &i)
    	}
    	return z
    }
    
    // Quo sets z to the quotient x/y for y != 0 and returns z.
    // If y == 0, a division-by-zero run-time panic occurs.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 17:02:38 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  3. src/math/big/intconv.go

    // write count copies of text to s.
    func writeMultiple(s fmt.State, text string, count int) {
    	if len(text) > 0 {
    		b := []byte(text)
    		for ; count > 0; count-- {
    			s.Write(b)
    		}
    	}
    }
    
    var _ fmt.Formatter = intOne // *Int must implement fmt.Formatter
    
    // Format implements [fmt.Formatter]. It accepts the formats
    // 'b' (binary), 'o' (octal with 0 prefix), 'O' (octal with 0o prefix),
    // 'd' (decimal), 'x' (lowercase hexadecimal), and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/go/cfg/cfg.go

    //	} else {
    //		F()
    //	}
    //
    // produces this CFG:
    //
    //	1:  x := f()		Body
    //	    x != nil
    //	    succs: 2, 3
    //	2:  T()			IfThen
    //	    succs: 4
    //	3:  F()			IfElse
    //	    succs: 4
    //	4:			IfDone
    //
    // The CFG does contain Return statements; even implicit returns are
    // materialized (at the position of the function's closing brace).
    //
    // The CFG does not record conditions associated with conditional branch
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/cel/library/lists.go

    		next := it.Next()
    		nextCmp, ok := next.(traits.Comparer)
    		if !ok {
    			return types.MaybeNoSuchOverloadErr(next)
    		}
    		if prev != nil {
    			cmp := prev.Compare(next)
    			if cmp == types.IntOne {
    				return types.False
    			}
    		}
    		prev = nextCmp
    	}
    	return types.True
    }
    
    func sum(init func() ref.Val) functions.UnaryOp {
    	return func(val ref.Val) ref.Val {
    		i := init()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 21:31:27 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  6. 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)
  7. docs/kms/README.md

    - [Run MinIO with TLS / HTTPS](https://min.io/docs/minio/linux/operations/network-encryption.html)
    - [Tweak the KES server configuration](https://github.com/minio/kes/wiki/Configuration)
    - [Run a load balancer infront of KES](https://github.com/minio/kes/wiki/TLS-Proxy)
    - [Understand the KES server concepts](https://github.com/minio/kes/wiki/Concepts)
    
    ## Auto Encryption
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  8. src/math/big/rat.go

    	}
    
    	shift := 52 - exp
    
    	// Optimization (?): partially pre-normalise.
    	for mantissa&1 == 0 && shift > 0 {
    		mantissa >>= 1
    		shift--
    	}
    
    	z.a.SetUint64(mantissa)
    	z.a.neg = f < 0
    	z.b.Set(intOne)
    	if shift > 0 {
    		z.b.Lsh(&z.b, uint(shift))
    	} else {
    		z.a.Lsh(&z.a, uint(-shift))
    	}
    	return z.norm()
    }
    
    // quotToFloat32 returns the non-negative float32 value
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 13.5K bytes
    - Viewed (0)
Back to top