Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 4,002 for Init64 (0.18 sec)

  1. src/internal/chacha8rand/chacha8.go

    		byteorder.LeUint64(seed[3*8:]),
    	})
    }
    
    // Init64 seeds the state with the given seed value.
    func (s *State) Init64(seed [4]uint64) {
    	s.seed = seed
    	block(&s.seed, &s.buf, 0)
    	s.c = 0
    	s.i = 0
    	s.n = chunk
    }
    
    // Refill refills the state with more random values.
    // After a call to Refill, an immediate call to Next will succeed
    // (unless multiple goroutines are incorrectly sharing a state).
    func (s *State) Refill() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:47:29 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  2. src/runtime/rand.go

    	// See https://lemire.me/blog/2016/06/27/a-fast-alternative-to-the-modulo-reduction/
    	return uint32((uint64(cheaprand()) * uint64(n)) >> 32)
    }
    
    // Too much legacy code has go:linkname references
    // to runtime.fastrand and friends, so keep these around for now.
    // Code should migrate to math/rand/v2.Uint64,
    // which is just as fast, but that's only available in Go 1.22+.
    // It would be reasonable to remove these in Go 1.24.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 14:32:47 UTC 2024
    - 8K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/util/sets/int64.go

    // If the value passed in is not actually a map, this will panic.
    func Int64KeySet[T any](theMap map[int64]T) Int64 {
    	return Int64(KeySet(theMap))
    }
    
    // Insert adds items to the set.
    func (s Int64) Insert(items ...int64) Int64 {
    	return Int64(cast(s).Insert(items...))
    }
    
    // Delete removes all items from the set.
    func (s Int64) Delete(items ...int64) Int64 {
    	return Int64(cast(s).Delete(items...))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 20 03:47:18 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/plan9/dir_plan9.go

    }
    
    // gbit64 reads a 64-bit number in little-endian order from b and returns it with the remaining slice of b.
    func gbit64(b []byte) (uint64, []byte) {
    	lo := uint32(b[0]) | uint32(b[1])<<8 | uint32(b[2])<<16 | uint32(b[3])<<24
    	hi := uint32(b[4]) | uint32(b[5])<<8 | uint32(b[6])<<16 | uint32(b[7])<<24
    	return uint64(lo) | uint64(hi)<<32, b[8:]
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 15 19:02:39 UTC 2021
    - 5.6K bytes
    - Viewed (0)
  5. src/syscall/dir_plan9.go

    		}
    	}
    
    	b = pbit16(b, uint16(n)-2)
    	b = pbit16(b, d.Type)
    	b = pbit32(b, d.Dev)
    	b = pbit8(b, d.Qid.Type)
    	b = pbit32(b, d.Qid.Vers)
    	b = pbit64(b, d.Qid.Path)
    	b = pbit32(b, d.Mode)
    	b = pbit32(b, d.Atime)
    	b = pbit32(b, d.Mtime)
    	b = pbit64(b, uint64(d.Length))
    	b = pstring(b, d.Name)
    	b = pstring(b, d.Uid)
    	b = pstring(b, d.Gid)
    	b = pstring(b, d.Muid)
    
    	return n, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:32:38 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  6. src/testing/quick/quick_test.go

    		t.Fatal(err)
    	}
    }
    
    func TestInt64(t *testing.T) {
    	var lo, hi int64
    	f := func(x int64) bool {
    		if x < lo {
    			lo = x
    		}
    		if x > hi {
    			hi = x
    		}
    		return true
    	}
    	cfg := &Config{MaxCount: 10000}
    	Check(f, cfg)
    	if uint64(lo)>>62 == 0 || uint64(hi)>>62 == 0 {
    		t.Errorf("int64 returned range %#016x,%#016x; does not look like full range", lo, hi)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 12:54:00 UTC 2019
    - 9K bytes
    - Viewed (0)
  7. test/rotate.go

    			os.Exit(0)
    		}
    	}
    }
    `
    
    var (
    	uop = [2]func(x, y uint64) uint64{
    		func(x, y uint64) uint64 {
    			return x | y
    		},
    		func(x, y uint64) uint64 {
    			return x ^ y
    		},
    	}
    	iop = [2]func(x, y int64) int64{
    		func(x, y int64) int64 {
    			return x | y
    		},
    		func(x, y int64) int64 {
    			return x ^ y
    		},
    	}
    	cop = [2]byte{'|', '^'}
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 3.3K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types/universe.go

    	SliceSize = RoundUp(SliceCapOffset+int64(PtrSize), int64(PtrSize))
    
    	// string is same as slice wo the cap
    	StringSize = RoundUp(SliceLenOffset+int64(PtrSize), int64(PtrSize))
    
    	for et := Kind(0); et < NTYPE; et++ {
    		SimType[et] = et
    	}
    
    	Types[TANY] = newType(TANY) // note: an old placeholder type, NOT the new builtin 'any' alias for interface{}
    	Types[TINTER] = NewInterface(nil)
    	CheckSize(Types[TINTER])
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 26 21:56:49 UTC 2023
    - 4K bytes
    - Viewed (0)
  9. src/cmd/internal/notsha256/sha256.go

    	init2 = 0x3C6EF372
    	init3 = 0xA54FF53A
    	init4 = 0x510E527F
    	init5 = 0x9B05688C
    	init6 = 0x1F83D9AB
    	init7 = 0x5BE0CD19
    )
    
    // digest represents the partial evaluation of a checksum.
    type digest struct {
    	h   [8]uint32
    	x   [chunk]byte
    	nx  int
    	len uint64
    }
    
    func (d *digest) Reset() {
    	d.h[0] = init0
    	d.h[1] = init1
    	d.h[2] = init2
    	d.h[3] = init3
    	d.h[4] = init4
    	d.h[5] = init5
    	d.h[6] = init6
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 29 14:23:17 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  10. test/index.go

    var i32 int32 = 100022
    var i64 int64 = 100023
    var i64big int64 = 1<<31
    var i64bigger int64 = 1<<32
    var huge uint64 = 1<<64 - 1
    var fgood float64 = 2.0
    var fbad float64 = 2.1
    
    var nj int = -10
    var ni int = -11
    var ni8 int8 = -14
    var ni16 int16 = -15
    var ni32 int32 = -12
    var ni64 int64 = -13
    var ni64big int64 = -1<<31
    var ni64bigger int64 = -1<<32
    var nhuge int64 = -1<<63
    var nfgood float64 = -2.0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Sep 08 17:28:20 UTC 2019
    - 6.4K bytes
    - Viewed (0)
Back to top