Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 135 for S1 (0.12 sec)

  1. src/main/java/org/codelibs/core/lang/StringUtil.java

        }
    
        /**
         * 文字列を含んでいるかどうか返します。
         *
         * @param s1
         *            文字列
         * @param s2
         *            比較する対象となる文字列
         * @return 文字列を含んでいるかどうか
         */
        public static boolean contains(final String s1, final String s2) {
            if (isEmpty(s1)) {
                return false;
            }
            return s1.indexOf(s2) >= 0;
        }
    
        /**
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  2. src/hash/fnv/fnv.go

    		// Compute the multiplication
    		s0, s1 := bits.Mul64(prime128Lower, s[1])
    		s0 += s[1]<<prime128Shift + prime128Lower*s[0]
    		// Update the values
    		s[1] = s1
    		s[0] = s0
    		s[1] ^= uint64(c)
    	}
    	return len(data), nil
    }
    
    func (s *sum128a) Write(data []byte) (int, error) {
    	for _, c := range data {
    		s[1] ^= uint64(c)
    		// Compute the multiplication
    		s0, s1 := bits.Mul64(prime128Lower, s[1])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 22:36:41 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  3. src/internal/fuzz/encoding_test.go

    	f.Add(string([]rune{unicode.ReplacementChar}))
    
    	f.Fuzz(func(t *testing.T, s1 string) {
    		b := marshalCorpusFile(s1)
    		t.Logf("marshaled %q:\n%s", s1, b)
    
    		rs, err := unmarshalCorpusFile(b)
    		if err != nil {
    			t.Fatal(err)
    		}
    		if len(rs) != 1 {
    			t.Fatalf("unmarshaled %d values", len(rs))
    		}
    		s2 := rs[0].(string)
    		if s2 != s1 {
    			t.Errorf("unmarshaled %q", s2)
    		}
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 00:20:34 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  4. src/crypto/subtle/xor_test.go

    	sizes := []int64{1 << 3, 1 << 7, 1 << 11, 1 << 15}
    	for _, size := range sizes {
    		b.Run(fmt.Sprintf("%dBytes", size), func(b *testing.B) {
    			s0 := data0[:size]
    			s1 := data1[:size]
    			b.SetBytes(int64(size))
    			for i := 0; i < b.N; i++ {
    				XORBytes(dst, s0, s1)
    			}
    		})
    	}
    }
    
    func mustPanic(t *testing.T, expected string, f func()) {
    	t.Helper()
    	defer func() {
    		switch msg := recover().(type) {
    		case nil:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:51:19 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. test/codegen/comparisons.go

    type T1 struct {
    	a [8]byte
    }
    
    func CompareStruct1(s1, s2 T1) bool {
    	// amd64:`CMPQ\tcommand-line-arguments[.+_a-z0-9]+\(SP\), [A-Z]`
    	// amd64:-`CALL`
    	return s1 == s2
    }
    
    type T2 struct {
    	a [16]byte
    }
    
    func CompareStruct2(s1, s2 T2) bool {
    	// amd64:`CMPQ\tcommand-line-arguments[.+_a-z0-9]+\(SP\), [A-Z]`
    	// amd64:-`CALL`
    	return s1 == s2
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 16:31:02 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  6. src/crypto/internal/nistec/p256_asm_ppc64le.s

    	// X=Z1; Y=Z2; MUL; T-   // Z3 = Z1*Z2
    	// X=T ; Y=H ; MUL; Z3:=T// Z3 = Z3*H << store-out Z3 result reg.. could override Z1, if slices have same backing array
    	// X=Y1; Y=S1; MUL; S1=T // S1 = Y1*S1
    	// X=Y2; Y=R ; MUL; T-   // R  = Y2*R
    	// SUB(R<T-S1)           // R  = R-S1
    	// X=H ; Y=H ; MUL; T-   // T1 = H*H
    	// X-  ; Y=T ; MUL; T2=T // T2 = H*T1
    	// X=U1; Y-  ; MUL; U1=T // U1 = U1*T1
    	// X=R ; Y=R ; MUL; T-   // X3 = R*R
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  7. src/crypto/internal/nistec/p256_asm_s390x.s

    	// X=Z1; Y=Z2; MUL; T-   // Z3 = Z1*Z2
    	// X=T ; Y=H ; MUL; Z3:=T// Z3 = Z3*H << store-out Z3 result reg.. could override Z1, if slices have same backing array
    	// X=Y1; Y=S1; MUL; S1=T // S1 = Y1*S1
    	// X=Y2; Y=R ; MUL; T-   // R  = Y2*R
    	// SUB(R<T-S1)           // R  = R-S1
    	// X=H ; Y=H ; MUL; T-   // T1 = H*H
    	// X-  ; Y=T ; MUL; T2=T // T2 = H*T1
    	// X=U1; Y-  ; MUL; U1=T // U1 = U1*T1
    	// X=R ; Y=R ; MUL; T-   // X3 = R*R
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 55.4K bytes
    - Viewed (0)
  8. platforms/core-runtime/logging/src/main/java/org/gradle/util/TextUtil.java

                    builder.append('\n');
                }
            }
    
            return builder.toString();
        }
    
        public static String shorterOf(String s1, String s2) {
            logDeprecation();
            if (s2.length() >= s1.length()) {
                return s1;
            } else {
                return s2;
            }
        }
    
        /**
         * Same behavior as Groovy minus operator between Strings
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  9. pilot/pkg/model/sidecar_test.go

    				} else if s1 != s2 {
    					t.Errorf("Expected service %v in SidecarScope.Services should equal to that in SidecarScope.servicesByHostname", s1.Hostname)
    				}
    			}
    
    			for _, s1 := range tt.expectedServices {
    				serviceFound = false
    				for _, s2 := range sidecarScope.services {
    					if s1.Hostname == s2.Hostname {
    						serviceFound = true
    						break
    					}
    				}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 07 09:38:49 UTC 2024
    - 74.3K bytes
    - Viewed (0)
  10. test/typeparam/graph.go

    )
    
    // _SliceEqual reports whether two slices are equal: the same length and all
    // elements equal. All floating point NaNs are considered equal.
    func _SliceEqual[Elem comparable](s1, s2 []Elem) bool {
    	if len(s1) != len(s2) {
    		return false
    	}
    	for i, v1 := range s1 {
    		v2 := s2[i]
    		if v1 != v2 {
    			isNaN := func(f Elem) bool { return f != f }
    			if !isNaN(v1) || !isNaN(v2) {
    				return false
    			}
    		}
    	}
    	return true
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 5.7K bytes
    - Viewed (0)
Back to top