Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 69 for S1 (0.02 sec)

  1. guava-tests/test/com/google/common/base/MoreObjectsTest.java

    /** Tests for {@link MoreObjects}. */
    @GwtCompatible(emulated = true)
    public class MoreObjectsTest extends TestCase {
      public void testFirstNonNull_withNonNull() {
        String s1 = "foo";
        String s2 = MoreObjects.firstNonNull(s1, "bar");
        assertSame(s1, s2);
    
        Long n1 = 42L;
        Long n2 = MoreObjects.firstNonNull(null, n1);
        assertSame(n1, n2);
    
        Boolean b1 = true;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:24:55 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. src/crypto/elliptic/params.go

    		h.Add(h, curve.P)
    	}
    	i := new(big.Int).Lsh(h, 1)
    	i.Mul(i, i)
    	j := new(big.Int).Mul(h, i)
    
    	s1 := new(big.Int).Mul(y1, z2)
    	s1.Mul(s1, z2z2)
    	s1.Mod(s1, curve.P)
    	s2 := new(big.Int).Mul(y2, z1)
    	s2.Mul(s2, z1z1)
    	s2.Mod(s2, curve.P)
    	r := new(big.Int).Sub(s2, s1)
    	if r.Sign() == -1 {
    		r.Add(r, curve.P)
    	}
    	yEqual := r.Sign() == 0
    	if xEqual && yEqual {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 16 17:46:09 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  3. statement_test.go

    				s.AddClause(clause.Where{
    					Exprs: s.BuildCondition(fmt.Sprintf("where%d", w)),
    				})
    			}
    
    			s1 := s.clone()
    			s1.AddClause(clause.Where{
    				Exprs: s.BuildCondition("FINAL1"),
    			})
    			s2 := s.clone()
    			s2.AddClause(clause.Where{
    				Exprs: s.BuildCondition("FINAL2"),
    			})
    
    			if reflect.DeepEqual(s1.Clauses["WHERE"], s2.Clauses["WHERE"]) {
    				t.Errorf("Where conditions should be different")
    			}
    		})
    	}
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Sat Dec 23 13:19:41 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  4. platforms/core-configuration/kotlin-dsl-tooling-builders/src/crossVersionTest/groovy/org/gradle/kotlin/dsl/tooling/builders/r54/AccessorsClassPathModelCrossVersionSpec.groovy

            def s1 = setOfAutomaticAccessorsFor(["application"])
            def s2 = setOfAutomaticAccessorsFor(["java"])
            def s3 = setOfAutomaticAccessorsFor(["application"])
            def s4 = setOfAutomaticAccessorsFor(["application", "java"])
            def s5 = setOfAutomaticAccessorsFor(["java"])
    
            expect:
            assertThat(s1, not(equalTo(s2))) // application ≠ java
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  5. src/runtime/rand.go

    	// http://simul.iro.umontreal.ca/testu01/tu01.html
    	t := (*[2]uint32)(unsafe.Pointer(&mp.cheaprand))
    	s1, s0 := t[0], t[1]
    	s1 ^= s1 << 17
    	s1 = s1 ^ s0 ^ s1>>7 ^ s0>>16
    	t[0], t[1] = s0, s1
    	return s0 + s1
    }
    
    // cheaprand64 is a non-cryptographic-quality 63-bit random generator
    // suitable for calling at very high frequency (such as during sampling decisions).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 14:32:47 UTC 2024
    - 8K bytes
    - Viewed (0)
  6. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/resolution/KaReceiverValue.kt

        public val expression: KtExpression by validityAsserted(expression)
    
        /**
         * Whether safe navigation is used on this receiver. For example
         * ```
         * fun test(s1: String?, s2: String) {
         *   s1?.length // explicit receiver `s1` has `isSafeNavigation = true`
         *   s2.length // explicit receiver `s2` has `isSafeNavigation = false`
         * }
         * ```
         */
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Jun 05 16:16:39 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  7. src/internal/types/testdata/check/decls1.go

    	s11 = &v
    	s12 = -(u + *t11) / *&v
    	s13 = a /* ERROR "shifted operand" */ << d
    	s14 = i << j
    	s18 = math.Pi * 10.0
    	s19 = s1 /* ERROR "cannot call" */ ()
     	s20 = f0 /* ERROR "no value" */ ()
    	s21 = f6(1, s1, i)
    	s22 = f6(1, s1, uu /* ERRORx `cannot use .* in argument` */ )
    
    	t1 int = i + j
    	t2 int = i /* ERROR "mismatched types" */ + x
    	t3 int = c /* ERRORx `cannot use .* variable declaration` */ + d
    	t4 string = s + t
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 05 18:13:11 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  8. cmd/bootstrap-peer-server.go

    	MinioEnv   map[string]string
    }
    
    // Diff - returns error on first difference found in two configs.
    func (s1 *ServerSystemConfig) Diff(s2 *ServerSystemConfig) error {
    	ns1 := s1.NEndpoints
    	ns2 := s2.NEndpoints
    	if ns1 != ns2 {
    		return fmt.Errorf("Expected number of endpoints %d, seen %d", ns1, ns2)
    	}
    
    	for i, cmdLine := range s1.CmdLines {
    		if cmdLine != s2.CmdLines[i] {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  9. test/typeparam/builtins.go

    }
    
    // make
    
    func m1[
    	S1 interface{ []int },
    	S2 interface{ []int | chan int },
    
    	M1 interface{ map[string]int },
    	M2 interface{ map[string]int | chan int },
    
    	C1 interface{ chan int },
    	C2 interface{ chan int | chan string },
    ]() {
    	type m1S0 []int
    	type m1M0 map[string]int
    	type m1C0 chan int
    
    	_ = make([]int, 10)
    	_ = make(m1S0, 10)
    	_ = make(S1, 10)
    	_ = make(S1, 10, 20)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 09:04:48 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  10. pkg/slices/slices.go

    // Floating point NaNs are not considered equal.
    func Equal[E comparable](s1, s2 []E) bool {
    	return slices.Equal(s1, s2)
    }
    
    // EqualUnordered reports whether two slices are equal, ignoring order
    func EqualUnordered[E comparable](s1, s2 []E) bool {
    	if len(s1) != len(s2) {
    		return false
    	}
    	first := make(map[E]struct{}, len(s1))
    	for _, c := range s1 {
    		first[c] = struct{}{}
    	}
    	for _, c := range s2 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 06:28:11 UTC 2024
    - 7.9K bytes
    - Viewed (0)
Back to top