- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 910 for sbits (0.05 sec)
-
src/compress/bzip2/bzip2_test.go
var vectors = []struct { nbits uint // Number of bits to read value int // Expected output value (0 for error) fail bool // Expected operation failure? }{ {nbits: 1, value: 1}, {nbits: 1, value: 0}, {nbits: 1, value: 1}, {nbits: 5, value: 11}, {nbits: 32, value: 0x12345678}, {nbits: 15, value: 14495}, {nbits: 3, value: 6}, {nbits: 6, value: 13}, {nbits: 1, fail: true}, }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 09 19:12:23 UTC 2020 - 6.3K bytes - Viewed (0) -
src/runtime/mcheckmark.go
} // setCheckmark throws if marking object is a checkmarks violation, // and otherwise sets obj's checkmark. It returns true if obj was // already checkmarked. func setCheckmark(obj, base, off uintptr, mbits markBits) bool { if !mbits.isMarked() { printlock() print("runtime: checkmarks found unexpected unmarked object obj=", hex(obj), "\n") print("runtime: found obj at *(", hex(base), "+", hex(off), ")\n")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 2.8K bytes - Viewed (0) -
src/math/big/natconv.go
nbits -= shift } // convert any partial leading digit and advance to next word if nbits == 0 { // no partial digit remaining, just advance w = x[k] nbits = _W } else { // partial digit in current word w (== x[k-1]) and next word x[k] w |= x[k] << nbits i-- s[i] = digits[w&mask] // advance w = x[k] >> (shift - nbits)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 18 17:59:44 UTC 2022 - 14.6K bytes - Viewed (0) -
test/divmod.go
} } // generate all uint64 values x where x has at most n bits set in the low w // and call f(x) for each. func gen1(n, w int, f func(uint64)) { gen(0, 0, n, w-1, f) } func gen(val uint64, nbits, maxbits, pos int, f func(uint64)) { if pos < 0 { f(val) return } gen(val, nbits, maxbits, pos-1, f) if nbits < maxbits { gen(val|1<<uint(pos), nbits+1, maxbits, pos-1, f) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 9.3K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/rewrite.go
me = 32 - bits.TrailingZeros32(uint32(mask)) mbn = bits.LeadingZeros32(^uint32(mask)) men = 32 - bits.TrailingZeros32(^uint32(mask)) } else { mb = bits.LeadingZeros64(uint64(mask)) me = 64 - bits.TrailingZeros64(uint64(mask)) mbn = bits.LeadingZeros64(^uint64(mask)) men = 64 - bits.TrailingZeros64(^uint64(mask)) } // Check for a wrapping mask (e.g bits at 0 and 63)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 19:02:52 UTC 2024 - 64.2K bytes - Viewed (0) -
src/hash/crc32/gen_const_ppc64le.go
} } func genCrc32ConstTable(w *bytes.Buffer, poly uint32, polyid string) { ref_poly := reflect_bits(uint64(poly), 32) fmt.Fprintf(w, "\n\t/* Reduce %d kbits to 1024 bits */\n", blocking*8) j := 0 for i := (blocking * 8) - 1024; i > 0; i -= 1024 { a := reflect_bits(get_remainder(ref_poly, 32, uint(i)), 32) << 1 b := reflect_bits(get_remainder(ref_poly, 32, uint(i+64)), 32) << 1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 19 20:44:20 UTC 2024 - 4.5K bytes - Viewed (0) -
src/cmd/internal/obj/riscv/obj.go
// Bit order - [8|4:3|7:6|2:1|5] bits := extractBitAndShift(imm, 8, 7) bits |= extractBitAndShift(imm, 4, 6) bits |= extractBitAndShift(imm, 3, 5) bits |= extractBitAndShift(imm, 7, 4) bits |= extractBitAndShift(imm, 6, 3) bits |= extractBitAndShift(imm, 2, 2) bits |= extractBitAndShift(imm, 1, 1) bits |= extractBitAndShift(imm, 5, 0) return (bits>>5)<<10 | (bits&0x1f)<<2 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 07 03:32:27 UTC 2024 - 77K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/AtomicDoubleArray.java
* from {@link Double#equals}, as if implemented by: * * <pre>{@code * static boolean bitEquals(double x, double y) { * long xBits = Double.doubleToRawLongBits(x); * long yBits = Double.doubleToRawLongBits(y); * return xBits == yBits; * } * }</pre> * * @author Doug Lea * @author Martin Buchholz * @since 11.0 */ @GwtIncompatible @J2ktIncompatible
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Apr 04 09:45:04 UTC 2023 - 10.2K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/AtomicDouble.java
* from {@link Double#equals}, as if implemented by: * * <pre>{@code * static boolean bitEquals(double x, double y) { * long xBits = Double.doubleToRawLongBits(x); * long yBits = Double.doubleToRawLongBits(y); * return xBits == yBits; * } * }</pre> * * <p>It is possible to write a more scalable updater, at the cost of giving up strict atomicity. * See for example <a
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Apr 04 09:45:04 UTC 2023 - 9.5K bytes - Viewed (0) -
src/runtime/mwbbuf.go
obj, span, objIndex := findObject(ptr, 0, 0) if obj == 0 { continue } // TODO: Consider making two passes where the first // just prefetches the mark bits. mbits := span.markBitsForIndex(objIndex) if mbits.isMarked() { continue } mbits.setMarked() // Mark span. arena, pageIdx, pageMask := pageIndexOf(span.base()) if arena.pageMarks[pageIdx]&pageMask == 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 8.1K bytes - Viewed (0)