Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 261 for S1 (0.02 sec)

  1. 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)
  2. 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)
  3. 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)
  4. maven-core/src/main/java/org/apache/maven/plugin/CacheUtils.java

    import org.apache.maven.model.Plugin;
    
    /**
     */
    class CacheUtils {
    
        /**
         * @deprecated Use {@link Objects#equals(Object)}
         */
        @Deprecated
        public static <T> boolean eq(T s1, T s2) {
            return Objects.equals(s1, s2);
        }
    
        /**
         * @deprecated Use {@link Objects#hashCode(Object)}
         */
        @Deprecated
        public static int hash(Object obj) {
            return obj != null ? obj.hashCode() : 0;
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 08:39:32 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  5. src/cmd/internal/notsha256/sha256block_ppc64x.s

    	VSHASIGMAW	$0, xj_1, $0, s0; \
    	VSEL		g, f, e, FUNC; \
    	VSHASIGMAW	$15, e, $1, S1; \
    	VADDUWM		xi, h, h; \
    	VSHASIGMAW	$0, a, $1, S0; \
    	VSHASIGMAW	$15, xj_14, $0, s1; \
    	VADDUWM		FUNC, h, h; \
    	VXOR		b, a, FUNC; \
    	VADDUWM		xj_9, xj, xj; \
    	VADDUWM		S1, h, h; \
    	VSEL		b, c, FUNC, FUNC; \
    	VADDUWM		KI, g, g; \
    	VADDUWM		h, d, d; \
    	VADDUWM		FUNC, S0, S0; \
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 14.5K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/util/sets/set_test.go

    	}
    
    	a.Delete("")
    	if a.Equal(b) {
    		t.Errorf("Expected to be not-equal: %v vs %v", a, b)
    	}
    }
    
    func TestStringUnion(t *testing.T) {
    	tests := []struct {
    		s1       String
    		s2       String
    		expected String
    	}{
    		{
    			NewString("1", "2", "3", "4"),
    			NewString("3", "4", "5", "6"),
    			NewString("1", "2", "3", "4", "5", "6"),
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 20 03:47:18 UTC 2022
    - 8K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. test/escape2.go

    	s := string(b)        // ERROR "string\(b\) escapes to heap$"
    	s1 := s[0:1]
    	sink = s1 // ERROR "s1 escapes to heap$"
    }
    
    func addstr0() {
    	s0 := "a"
    	s1 := "b"
    	s := s0 + s1 // ERROR "s0 \+ s1 does not escape$"
    	_ = s
    }
    
    func addstr1() {
    	s0 := "a"
    	s1 := "b"
    	s := "c"
    	s += s0 + s1 // ERROR "s0 \+ s1 does not escape$"
    	_ = s
    }
    
    func addstr2() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 35.1K bytes
    - Viewed (0)
Back to top