Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 741 for bitPos (0.19 sec)

  1. src/math/rand/v2/pcg.go

    	// state = state * mul + inc
    	hi, lo = bits.Mul64(p.lo, mulLo)
    	hi += p.hi*mulLo + p.lo*mulHi
    	lo, c := bits.Add64(lo, incLo, 0)
    	hi, _ = bits.Add64(hi, incHi, c)
    	p.lo = lo
    	p.hi = hi
    	return hi, lo
    }
    
    // Uint64 return a uniformly-distributed random uint64 value.
    func (p *PCG) Uint64() uint64 {
    	hi, lo := p.next()
    
    	// XSL-RR would be
    	//	hi, lo := p.next()
    	//	return bits.RotateLeft64(lo^hi, -int(hi>>58))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:31:58 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/hash/Hashing.java

      public static HashFunction goodFastHash(int minimumBits) {
        int bits = checkPositiveAndMakeMultipleOf32(minimumBits);
    
        if (bits == 32) {
          return Murmur3_32HashFunction.GOOD_FAST_HASH_32;
        }
        if (bits <= 128) {
          return Murmur3_128HashFunction.GOOD_FAST_HASH_128;
        }
    
        // Otherwise, join together some 128-bit murmur3s
        int hashFunctionsNeeded = (bits + 127) / 128;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 09 00:37:15 UTC 2024
    - 29.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/_gen/RISCV64Ops.go

    		{name: "ADDIW", argLength: 1, reg: gp11, asm: "ADDIW", aux: "Int64"},  // 32 low bits of arg0 + auxint, sign extended to 64 bits
    		{name: "NEG", argLength: 1, reg: gp11, asm: "NEG"},                    // -arg0
    		{name: "NEGW", argLength: 1, reg: gp11, asm: "NEGW"},                  // -arg0 of 32 bits, sign extended to 64 bits
    		{name: "SUB", argLength: 2, reg: gp21, asm: "SUB"},                    // arg0 - arg1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 14:57:07 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  4. test/fixedbugs/issue9604b.go

    		r := big.NewInt(1)
    		a = append(a, r.Lsh(r, t.bits-1).Sub(r, big.NewInt(1)))
    		r = big.NewInt(1)
    		a = append(a, r.Lsh(r, t.bits-1).Sub(r, big.NewInt(2)))
    		r = big.NewInt(1)
    		a = append(a, r.Lsh(r, t.bits-1).Neg(r))
    		r = big.NewInt(1)
    		a = append(a, r.Lsh(r, t.bits-1).Neg(r).Add(r, big.NewInt(1)))
    	} else {
    		r := big.NewInt(1)
    		a = append(a, r.Lsh(r, t.bits).Sub(r, big.NewInt(1)))
    		r = big.NewInt(1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  5. pkg/util/iptree/iptree.go

    // in a subnet to 1.
    // network 192.168.0.0/24 : subnet bits 24 host bits 32 - 24 = 8
    // broadcast address 192.168.0.255
    func broadcastAddress(subnet netip.Prefix) (netip.Addr, error) {
    	base := subnet.Masked().Addr()
    	bytes := base.AsSlice()
    	// get all the host bits from the subnet
    	n := 8*len(bytes) - subnet.Bits()
    	// set all the host bits to 1
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:04 UTC 2023
    - 17.7K bytes
    - Viewed (0)
  6. src/os/types.go

    // A FileMode represents a file's mode and permission bits.
    // The bits have the same definition on all systems, so that
    // information about files can be moved from one system
    // to another portably. Not all bits apply to all systems.
    // The only required bit is [ModeDir] for directories.
    type FileMode = fs.FileMode
    
    // The defined file mode bits are the most significant bits of the [FileMode].
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 20:52:06 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  7. src/runtime/mbitmap.go

    	}
    	if tp.typ == nil {
    		// Handle small objects.
    		// Clear any bits before the target address.
    		tp.mask &^= (1 << ((target - tp.addr) / goarch.PtrSize)) - 1
    		// Clear any bits past the limit.
    		if tp.addr+goarch.PtrSize*ptrBits > limit {
    			bits := (tp.addr + goarch.PtrSize*ptrBits - limit) / goarch.PtrSize
    			tp.mask &^= ((1 << (bits)) - 1) << (ptrBits - bits)
    		}
    		return tp
    	}
    
    	// Move up elem and addr.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 60K bytes
    - Viewed (0)
  8. src/crypto/internal/mlkem768/mlkem768_test.go

    			if c >= 1<<bits {
    				t.Fatalf("compress(%d, %d) = %d >= 2^bits", a, bits, c)
    			}
    			got := decompress(c, bits)
    			diff := min(a-got, got-a, a-got+q, got-a+q)
    			ceil := q / (1 << bits)
    			if diff > fieldElement(ceil) {
    				t.Fatalf("decompress(compress(%d, %d), %d) = %d (diff %d, max diff %d)",
    					a, bits, bits, got, diff, ceil)
    			}
    		}
    	}
    }
    
    func CompressRat(x fieldElement, d uint8) uint16 {
    	if x >= q {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 15:27:18 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/hash/Hashing.java

      public static HashFunction goodFastHash(int minimumBits) {
        int bits = checkPositiveAndMakeMultipleOf32(minimumBits);
    
        if (bits == 32) {
          return Murmur3_32HashFunction.GOOD_FAST_HASH_32;
        }
        if (bits <= 128) {
          return Murmur3_128HashFunction.GOOD_FAST_HASH_128;
        }
    
        // Otherwise, join together some 128-bit murmur3s
        int hashFunctionsNeeded = (bits + 127) / 128;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 09 00:37:15 UTC 2024
    - 32.3K bytes
    - Viewed (0)
  10. src/internal/fuzz/coverage.go

    		b |= b >> 4
    		b -= b >> 1
    		coverageSnapshot[i] = b
    	}
    }
    
    // diffCoverage returns a set of bits set in snapshot but not in base.
    // If there are no new bits set, diffCoverage returns nil.
    func diffCoverage(base, snapshot []byte) []byte {
    	if len(base) != len(snapshot) {
    		panic(fmt.Sprintf("the number of coverage bits changed: before=%d, after=%d", len(base), len(snapshot)))
    	}
    	found := false
    	for i := range snapshot {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:23:49 UTC 2024
    - 2.5K bytes
    - Viewed (0)
Back to top