Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 67 for sum64a (0.87 sec)

  1. src/hash/fnv/fnv.go

    }
    
    func (s *sum32) Size() int   { return 4 }
    func (s *sum32a) Size() int  { return 4 }
    func (s *sum64) Size() int   { return 8 }
    func (s *sum64a) Size() int  { return 8 }
    func (s *sum128) Size() int  { return 16 }
    func (s *sum128a) Size() int { return 16 }
    
    func (s *sum32) BlockSize() int   { return 1 }
    func (s *sum32a) BlockSize() int  { return 1 }
    func (s *sum64) BlockSize() int   { return 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. test/armimm.go

    	if want, got = a+c64s, add64s(a); got != want {
    		panic(fmt.Sprintf("add64s(%x) = %x, want %x", a, got, want))
    	}
    	if want, got = a-c64a, sub64a(a); got != want {
    		panic(fmt.Sprintf("sub64a(%x) = %x, want %x", a, got, want))
    	}
    	if want, got = a-c64s, sub64s(a); got != want {
    		panic(fmt.Sprintf("sub64s(%x) = %x, want %x", a, got, want))
    	}
    	if want, got = a|c64a, or64(a); got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 11 13:53:54 UTC 2017
    - 3.9K bytes
    - Viewed (0)
  3. test/ddd.go

    	if x := sum3(1, 8); x != 3*9 {
    		println("sum 9", x)
    		panic("fail")
    	}
    	if x := sum4(1, 2, 3); x != 4*6 {
    		println("sum 6", x)
    		panic("fail")
    	}
    	if x := sum4(); x != 4*0 {
    		println("sum 0", x)
    		panic("fail")
    	}
    	if x := sum4(10); x != 4*10 {
    		println("sum 10", x)
    		panic("fail")
    	}
    	if x := sum4(1, 8); x != 4*9 {
    		println("sum 9", x)
    		panic("fail")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 4.2K bytes
    - Viewed (0)
  4. src/hash/maphash/maphash_test.go

    		}
    	}
    
    	sum := hh[0].Sum64()
    	for i, h := range hh {
    		if sum != h.Sum64() {
    			t.Errorf("hash %d not identical to a single Write", i)
    		}
    	}
    
    	if sum1 := Bytes(hh[0].Seed(), b); sum1 != hh[0].Sum64() {
    		t.Errorf("hash using Bytes not identical to a single Write")
    	}
    
    	if sum1 := String(hh[0].Seed(), string(b)); sum1 != hh[0].Sum64() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  5. src/hash/maphash/example_test.go

    	var h maphash.Hash
    
    	// Add a string to the hash, and print the current hash value.
    	h.WriteString("hello, ")
    	fmt.Printf("%#x\n", h.Sum64())
    
    	// Append additional data (in the form of a byte array).
    	h.Write([]byte{'w', 'o', 'r', 'l', 'd'})
    	fmt.Printf("%#x\n", h.Sum64())
    
    	// Reset discards all data previously added to the Hash, without
    	// changing its seed.
    	h.Reset()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 24 01:59:55 UTC 2020
    - 933 bytes
    - Viewed (0)
  6. src/hash/maphash/maphash.go

    	h.n = 0
    }
    
    // Sum64 returns h's current 64-bit value, which depends on
    // h's seed and the sequence of bytes added to h since the
    // last call to [Hash.Reset] or [Hash.SetSeed].
    //
    // All bits of the Sum64 result are close to uniformly and
    // independently distributed, so it can be safely reduced
    // by using bit masking, shifting, or modular arithmetic.
    func (h *Hash) Sum64() uint64 {
    	h.initSeed()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 19:15:34 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  7. pkg/util/hash/hash.go

    // Hash.Write error always return nil, this func simplify caller handle error
    func (i *instance) WriteString(s string) (n int) {
    	n, _ = i.hash.WriteString(s)
    	return
    }
    
    func (i *instance) Sum64() uint64 {
    	return i.hash.Sum64()
    }
    
    func (i *instance) Sum() string {
    	sum := i.hash.Sum(nil)
    	return hex.EncodeToString(sum)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Dec 21 20:24:14 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  8. test/escape_hash_maphash.go

    // Test escape analysis for hash/maphash.
    
    package escape
    
    import (
    	"hash/maphash"
    )
    
    func f() {
    	var x maphash.Hash // should be stack allocatable
    	x.WriteString("foo")
    	x.Sum64()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 16 20:31:45 UTC 2019
    - 368 bytes
    - Viewed (0)
  9. src/hash/crc64/crc64_test.go

    				t.Errorf("could not unmarshal: %v", err)
    				continue
    			}
    
    			io.WriteString(h, g.in[len(g.in)/2:])
    			io.WriteString(h2, g.in[len(g.in)/2:])
    
    			if h.Sum64() != h2.Sum64() {
    				t.Errorf("ISO crc64(%s) = 0x%x != marshaled (0x%x)", g.in, h.Sum64(), h2.Sum64())
    			}
    		}
    	})
    	t.Run("ECMA", func(t *testing.T) {
    		table := MakeTable(ECMA)
    		for _, g := range golden {
    			h := New(table)
    			h2 := New(table)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 25 06:32:12 UTC 2018
    - 9.9K bytes
    - Viewed (0)
  10. test/codegen/mathbits.go

    	// s390x:"SUBE"
    	// riscv64: "SUB",-"SLTU"
    	r, _ := bits.Sub64(x, y, ci)
    	return r
    }
    func Sub64M(p, q, r *[3]uint64) {
    	var c uint64
    	r[0], c = bits.Sub64(p[0], q[0], c)
    	// amd64:"SBBQ",-"NEGL",-"NEGQ"
    	// arm64:"SBCS",-"NEGS",-"NGC",-"NEG",-"ADD",-"SUB",-"CMP"
    	// s390x:"SUBE"
    	r[1], c = bits.Sub64(p[1], q[1], c)
    	r[2], c = bits.Sub64(p[2], q[2], c)
    }
    
    func Sub64MSaveC(p, q, r, c *[2]uint64) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:51:17 UTC 2024
    - 19.6K bytes
    - Viewed (0)
Back to top