Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 129 for Shift1 (0.17 sec)

  1. src/cmd/compile/internal/types2/conversions.go

    // (correct!) refusal of the conversion. But the reported error is essentially
    // "cannot convert untyped float value to string", yet the correct error (per
    // the spec) is that we cannot shift a floating-point value: 1 in 1<<s should
    // be converted to UntypedFloat because of the addition of 1.0. Fixing this
    // is tricky because we'd have to run updateExprType on the argument first.
    // (go.dev/issue/21982.)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:51:00 UTC 2024
    - 9K bytes
    - Viewed (0)
  2. src/net/textproto/reader.go

    //	        "^" / "_" / "`" / "|" / "~" / DIGIT / ALPHA
    //	token = 1*tchar
    func validHeaderFieldByte(c byte) bool {
    	// mask is a 128-bit bitmap with 1s for allowed bytes,
    	// so that the byte c can be tested with a shift and an and.
    	// If c >= 128, then 1<<c and 1<<(c-64) will both be zero,
    	// and this function will return false.
    	const mask = 0 |
    		(1<<(10)-1)<<'0' |
    		(1<<(26)-1)<<'a' |
    		(1<<(26)-1)<<'A' |
    		1<<'!' |
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  3. src/crypto/rsa/rsa.go

    		//   P = 2^todo × α
    		// where α is the product of nprimes numbers of the form 0.11...
    		//
    		// If α < 1/2 (which can happen for nprimes > 2), we need to
    		// shift todo to compensate for lost bits: the mean value of 0.11...
    		// is 7/8, so todo + shift - nprimes * log2(7/8) ~= bits - 1/2
    		// will give good results.
    		if nprimes >= 7 {
    			todo += (nprimes - 2) / 5
    		}
    		for i := 0; i < nprimes; i++ {
    			var err error
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  4. src/cmd/asm/internal/asm/asm.go

    		} else {
    			p.errorf("bad addr size for DATA argument: %d", sz)
    		}
    	}
    }
    
    // asmGlobl assembles a GLOBL pseudo-op.
    // GLOBL shifts<>(SB),8,$256
    // GLOBL shifts<>(SB),$256
    func (p *Parser) asmGlobl(operands [][]lex.Token) {
    	if len(operands) != 2 && len(operands) != 3 {
    		p.errorf("expect two or three operands for GLOBL")
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 02:04:54 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  5. src/net/netip/netip.go

    		return false
    	}
    	if ip.Is4() {
    		// xor the IP addresses together; mismatched bits are now ones.
    		// Shift away the number of bits we don't care about.
    		// Shifts in Go are more efficient if the compiler can prove
    		// that the shift amount is smaller than the width of the shifted type (64 here).
    		// We know that p.bits is in the range 0..32 because p is Valid;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  6. src/compress/bzip2/bzip2.go

    	}
    
    	for i := range tt {
    		b := tt[i] & 0xff
    		tt[c[b]] |= uint32(i) << 8
    		c[b]++
    	}
    
    	return tt[origPtr] >> 8
    }
    
    // This is a standard CRC32 like in hash/crc32 except that all the shifts are reversed,
    // causing the bits in the input to be processed in the reverse of the usual order.
    
    var crctab [256]uint32
    
    func init() {
    	const poly = 0x04C11DB7
    	for i := range crctab {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:40 UTC 2024
    - 13K bytes
    - Viewed (0)
  7. src/runtime/symtab.go

    	return p, true
    }
    
    // readvarint reads a varint from p.
    func readvarint(p []byte) (read uint32, val uint32) {
    	var v, shift, n uint32
    	for {
    		b := p[n]
    		n++
    		v |= uint32(b&0x7F) << (shift & 31)
    		if b&0x80 == 0 {
    			break
    		}
    		shift += 7
    	}
    	return n, v
    }
    
    type stackmap struct {
    	n        int32   // number of bitmaps
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 40K bytes
    - Viewed (0)
  8. src/cmd/vet/vet_test.go

    		"assign",
    		"atomic",
    		"bool",
    		"buildtag",
    		"cgo",
    		"composite",
    		"copylock",
    		"deadcode",
    		"directive",
    		"httpresponse",
    		"lostcancel",
    		"method",
    		"nilfunc",
    		"print",
    		"shift",
    		"slog",
    		"structtag",
    		"testingpkg",
    		// "testtag" has its own test
    		"unmarshal",
    		"unsafeptr",
    		"unused",
    	} {
    		pkg := pkg
    		t.Run(pkg, func(t *testing.T) {
    			t.Parallel()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 01:02:40 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  9. src/math/big/nat.go

    	v := y[len(y)-1] // v > 0 because y is normalized and y > 0
    	shift := nlz(v) + 1
    	v <<= shift
    	var q nat
    
    	const mask = 1 << (_W - 1)
    
    	// We walk through the bits of the exponent one by one. Each time we
    	// see a bit, we square, thus doubling the power. If the bit is a one,
    	// we also multiply by x, thus adding one to the power.
    
    	w := _W - int(shift)
    	// zz and r are used to avoid allocating in mul and div as
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:31:58 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  10. operator/cmd/mesh/install.go

    	})
    	if err != nil {
    		return err
    	}
    	// If there is no default webhook but a revisioned default webhook exists,
    	// and we are installing a new IOP with default semantics, the default webhook shifts.
    	if exists && len(mwhs.Items) == 0 && iop.Spec.GetRevision() == "" {
    		p.Println("The default revision has been updated to point to this installation.")
    	}
    	return nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 17 21:52:35 UTC 2024
    - 15.4K bytes
    - Viewed (0)
Back to top