Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,081 for nbits (0.29 sec)

  1. 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)
  2. android/guava/src/com/google/common/math/LongMath.java

                result *= n;
                result /= i;
              }
              return result;
            } else {
              int nBits = LongMath.log2(n, RoundingMode.CEILING);
    
              long result = 1;
              long numerator = n--;
              long denominator = 1;
    
              int numeratorBits = nBits;
              // This is an upper bound on log2(numerator, ceiling).
    
              /*
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 44.6K bytes
    - Viewed (0)
  3. src/cmd/internal/obj/riscv/obj.go

    // immIFits checks whether the immediate value x fits in nbits bits
    // as a signed integer. If it does not, an error is returned.
    func immIFits(x int64, nbits uint) error {
    	nbits--
    	min := int64(-1) << nbits
    	max := int64(1)<<nbits - 1
    	if x < min || x > max {
    		if nbits <= 16 {
    			return fmt.Errorf("signed immediate %d must be in range [%d, %d] (%d bits)", x, min, max, nbits)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 07 03:32:27 UTC 2024
    - 77K bytes
    - Viewed (0)
  4. guava/src/com/google/common/math/LongMath.java

                result *= n;
                result /= i;
              }
              return result;
            } else {
              int nBits = LongMath.log2(n, RoundingMode.CEILING);
    
              long result = 1;
              long numerator = n--;
              long denominator = 1;
    
              int numeratorBits = nBits;
              // This is an upper bound on log2(numerator, ceiling).
    
              /*
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 44.6K bytes
    - Viewed (0)
  5. src/math/big/natconv_test.go

    import (
    	"bytes"
    	"fmt"
    	"io"
    	"math/bits"
    	"strings"
    	"testing"
    )
    
    func TestMaxBase(t *testing.T) {
    	if MaxBase != len(digits) {
    		t.Fatalf("%d != %d", MaxBase, len(digits))
    	}
    }
    
    // log2 computes the integer binary logarithm of x.
    // The result is the integer n for which 2^n <= x < 2^(n+1).
    // If x == 0, the result is -1.
    func log2(x Word) int {
    	return bits.Len(uint(x)) - 1
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 12:54:00 UTC 2019
    - 16.8K bytes
    - Viewed (0)
  6. src/internal/zstd/bits.go

    	cnt  uint32  // number of valid bits in the bits field
    }
    
    // makeBitReader makes a bit reader starting at off.
    func (r *Reader) makeBitReader(data block, off int) bitReader {
    	return bitReader{
    		r:    r,
    		data: data,
    		off:  uint32(off),
    	}
    }
    
    // moreBits is called to read more bits.
    // This ensures that at least 16 bits are available.
    func (br *bitReader) moreBits() error {
    	for br.cnt < 16 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 18 20:34:13 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  7. src/math/bits/bits.go

    // To rotate x right by k bits, call RotateLeft8(x, -k).
    //
    // This function's execution time does not depend on the inputs.
    func RotateLeft8(x uint8, k int) uint8 {
    	const n = 8
    	s := uint(k) & (n - 1)
    	return x<<s | x>>(n-s)
    }
    
    // RotateLeft16 returns the value of x rotated left by (k mod 16) bits.
    // To rotate x right by k bits, call RotateLeft16(x, -k).
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 17.9K bytes
    - Viewed (0)
  8. test/codegen/bits.go

    func bitSetTest(x int) bool {
    	// amd64:"ANDL\t[$]9, AX"
    	// amd64:"CMPQ\tAX, [$]9"
    	return x&9 == 9
    }
    
    // mask contiguous one bits
    func cont1Mask64U(x uint64) uint64 {
    	// s390x:"RISBGZ\t[$]16, [$]47, [$]0,"
    	return x & 0x0000ffffffff0000
    }
    
    // mask contiguous zero bits
    func cont0Mask64U(x uint64) uint64 {
    	// s390x:"RISBGZ\t[$]48, [$]15, [$]0,"
    	return x & 0xffff00000000ffff
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  9. src/vendor/golang.org/x/net/http2/hpack/huffman.go

    	// cur is the bit buffer that has not been fed into n.
    	// cbits is the number of low order bits in cur that are valid.
    	// sbits is the number of bits of the symbol prefix being decoded.
    	cur, cbits, sbits := uint(0), uint8(0), uint8(0)
    	for _, b := range v {
    		cur = cur<<8 | uint(b)
    		cbits += 8
    		sbits += 8
    		for cbits >= 8 {
    			idx := byte(cur >> (cbits - 8))
    			n = n.children[idx]
    			if n == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 05 19:54:32 UTC 2022
    - 5.8K bytes
    - Viewed (0)
  10. src/math/big/float.go

    	}
    
    	switch x.form {
    	case finite:
    		// 0 < |x| < +Inf
    
    		const (
    			fbits = 32                //        float size
    			mbits = 23                //        mantissa size (excluding implicit msb)
    			ebits = fbits - mbits - 1 //     8  exponent size
    			bias  = 1<<(ebits-1) - 1  //   127  exponent bias
    			dmin  = 1 - bias - mbits  //  -149  smallest unbiased exponent (denormal)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 15:46:54 UTC 2024
    - 44.5K bytes
    - Viewed (0)
Back to top