Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,211 for isuint32 (0.35 sec)

  1. src/runtime/panic_test.go

    		{"panicCustomUint", `panic: main.MyUint(93)`},
    		{"panicCustomUint8", `panic: main.MyUint8(93)`},
    		{"panicCustomUint16", `panic: main.MyUint16(93)`},
    		{"panicCustomUint32", `panic: main.MyUint32(93)`},
    		{"panicCustomUint64", `panic: main.MyUint64(93)`},
    		{"panicCustomUintptr", `panic: main.MyUintptr(93)`},
    	}
    
    	for _, tt := range tests {
    		t := t
    		t.Run(tt.name, func(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. src/hash/maphash/maphash_purego.go

    	}
    	return mix(m5^len, mix(a^m2, b^seed))
    }
    
    func r3(p []byte, k uint64) uint64 {
    	return (uint64(p[0]) << 16) | (uint64(p[k>>1]) << 8) | uint64(p[k-1])
    }
    
    func r4(p []byte) uint64 {
    	return uint64(byteorder.LeUint32(p))
    }
    
    func r8(p []byte) uint64 {
    	return byteorder.LeUint64(p)
    }
    
    func mix(a, b uint64) uint64 {
    	hi, lo := bits.Mul64(a, b)
    	return hi ^ lo
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 12 05:36:29 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. src/hash/crc32/crc32.go

    		return errors.New("hash/crc32: invalid hash state size")
    	}
    	if tableSum(d.tab) != byteorder.BeUint32(b[4:]) {
    		return errors.New("hash/crc32: tables do not match")
    	}
    	d.crc = byteorder.BeUint32(b[8:])
    	return nil
    }
    
    func update(crc uint32, tab *Table, p []byte, checkInitIEEE bool) uint32 {
    	switch {
    	case haveCastagnoli.Load() && tab == castagnoliTable:
    		return updateCastagnoli(crc, p)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 12 05:36:29 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  4. src/hash/adler32/adler32.go

    	s1, s2 := uint32(d&0xffff), uint32(d>>16)
    	for len(p) > 0 {
    		var q []byte
    		if len(p) > nmax {
    			p, q = p[:nmax], p[nmax:]
    		}
    		for len(p) >= 4 {
    			s1 += uint32(p[0])
    			s2 += s1
    			s1 += uint32(p[1])
    			s2 += s1
    			s1 += uint32(p[2])
    			s2 += s1
    			s1 += uint32(p[3])
    			s2 += s1
    			p = p[4:]
    		}
    		for _, x := range p {
    			s1 += uint32(x)
    			s2 += s1
    		}
    		s1 %= mod
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 12 05:36:29 UTC 2024
    - 3K bytes
    - Viewed (0)
  5. src/hash/fnv/fnv.go

    func (s *sum128) Reset()  { s[0] = offset128Higher; s[1] = offset128Lower }
    func (s *sum128a) Reset() { s[0] = offset128Higher; s[1] = offset128Lower }
    
    func (s *sum32) Sum32() uint32  { return uint32(*s) }
    func (s *sum32a) Sum32() uint32 { return uint32(*s) }
    func (s *sum64) Sum64() uint64  { return uint64(*s) }
    func (s *sum64a) Sum64() uint64 { return uint64(*s) }
    
    func (s *sum32) Write(data []byte) (int, error) {
    	hash := *s
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 22:36:41 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  6. src/strconv/makeisprint.go

    			if i+1 <= max && unicode.IsPrint(i+1) {
    				except = append(except, uint32(i))
    				continue
    			}
    			rang = append(rang, uint32(lo), uint32(i-1))
    			lo = -1
    		}
    		if i > max {
    			break
    		}
    		if lo < 0 && unicode.IsPrint(i) {
    			lo = i
    		}
    	}
    	return
    }
    
    func to16(x []uint32) []uint16 {
    	var y []uint16
    	for _, v := range x {
    		if uint32(uint16(v)) != v {
    			panic("bad 32->16 conversion")
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 18:56:17 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  7. src/sync/atomic/doc.go

    func OrInt32(addr *int32, mask int32) (old int32)
    
    // OrUint32 atomically performs a bitwise OR operation on *addr using the bitmask provided as mask
    // and returns the old value.
    // Consider using the more ergonomic and less error-prone [Uint32.Or] instead.
    func OrUint32(addr *uint32, mask uint32) (old uint32)
    
    // OrInt64 atomically performs a bitwise OR operation on *addr using the bitmask provided as mask
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  8. src/testing/quick/quick_test.go

    func fUint16(a uint16) uint16 { return a }
    
    type TestUint16Alias uint16
    
    func fUint16Alias(a TestUint16Alias) TestUint16Alias { return a }
    
    func fUint32(a uint32) uint32 { return a }
    
    type TestUint32Alias uint32
    
    func fUint32Alias(a TestUint32Alias) TestUint32Alias { return a }
    
    func fUint64(a uint64) uint64 { return a }
    
    type TestUint64Alias uint64
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 12:54:00 UTC 2019
    - 9K bytes
    - Viewed (0)
  9. src/crypto/md5/gen.go

    	if err != nil {
    		log.Fatal(err)
    	}
    }
    
    type Data struct {
    	a, b, c, d string
    	Shift1     []int
    	Shift2     []int
    	Shift3     []int
    	Shift4     []int
    	Table1     []uint32
    	Table2     []uint32
    	Table3     []uint32
    	Table4     []uint32
    }
    
    var funcs = template.FuncMap{
    	"dup":     dup,
    	"relabel": relabel,
    	"rotate":  rotate,
    	"idx":     idx,
    	"seq":     seq,
    }
    
    func dup(count int, x []int) []int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  10. src/hash/crc32/crc32_generic.go

    // slicingUpdate uses the slicing-by-8 algorithm to update the CRC, given a
    // table that was previously computed using slicingMakeTable.
    func slicingUpdate(crc uint32, tab *slicing8Table, p []byte) uint32 {
    	if len(p) >= slicing8Cutoff {
    		crc = ^crc
    		for len(p) > 8 {
    			crc ^= byteorder.LeUint32(p)
    			crc = tab[0][p[7]] ^ tab[1][p[6]] ^ tab[2][p[5]] ^ tab[3][p[4]] ^
    				tab[4][crc>>24] ^ tab[5][(crc>>16)&0xFF] ^
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 22:36:41 UTC 2024
    - 2.5K bytes
    - Viewed (0)
Back to top