Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for Lsh (0.18 sec)

  1. misc/cgo/gmp/pi.go

    func extractDigit() int64 {
    	if big.CmpInt(numer, accum) > 0 {
    		return -1
    	}
    	tmp1.Lsh(numer, 1).Add(tmp1, numer).Add(tmp1, accum)
    	big.DivModInt(tmp1, tmp2, tmp1, denom)
    	tmp2.Add(tmp2, numer)
    	if big.CmpInt(tmp2, denom) >= 0 {
    		return -1
    	}
    	return tmp1.Int64()
    }
    
    func nextTerm(k int64) {
    	y2 := k*2 + 1
    	accum.Add(accum, tmp1.Lsh(numer, 1))
    	accum.Mul(accum, tmp1.SetInt64(y2))
    	numer.Mul(numer, tmp1.SetInt64(k))
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Apr 10 22:32:35 GMT 2023
    - 1.3K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/lex/tokenizer.go

    			t.tok = ARR
    			return ARR
    		}
    	case '@':
    		if s.Peek() == '>' {
    			s.Next()
    			t.tok = ROT
    			return ROT
    		}
    	case '<':
    		if s.Peek() == '<' {
    			s.Next()
    			t.tok = LSH
    			return LSH
    		}
    	case '>':
    		if s.Peek() == '>' {
    			s.Next()
    			t.tok = RSH
    			return RSH
    		}
    	}
    	return t.tok
    }
    
    func (t *Tokenizer) Close() {
    	if t.file != nil {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Aug 04 20:35:21 GMT 2022
    - 3K bytes
    - Viewed (0)
  3. src/cmd/asm/internal/lex/lex.go

    // returned by text/scanner.Scanner, plus a couple of extra values.
    type ScanToken rune
    
    const (
    	// Asm defines some two-character lexemes. We make up
    	// a rune/ScanToken value for them - ugly but simple.
    	LSH          ScanToken = -1000 - iota // << Left shift.
    	RSH                                   // >> Logical right shift.
    	ARR                                   // -> Used on ARM for shift type 3, arithmetic right shift.
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Aug 29 18:31:05 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  4. misc/cgo/gmp/gmp.go

    func (z *Int) Mod(x, y *Int) *Int {
    	x.doinit()
    	y.doinit()
    	z.doinit()
    	C.mpz_tdiv_r(&z.i[0], &x.i[0], &y.i[0])
    	return z
    }
    
    // Lsh sets z = x << s and returns z.
    func (z *Int) Lsh(x *Int, s uint) *Int {
    	x.doinit()
    	z.doinit()
    	C._mpz_mul_2exp(&z.i[0], &x.i[0], C.ulong(s))
    	return z
    }
    
    // Rsh sets z = x >> s and returns z.
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 9.5K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/asm/parse.go

    	ext := ""
    	if p.peek() == lex.LSH {
    		// (Rn)(Rm<<2), the shifted offset register.
    		ext = "LSL"
    	} else {
    		// (Rn)(Rm.UXTW<1), the extended offset register.
    		// Rm.UXTW<<3, the extended register.
    		p.get('.')
    		tok := p.next()
    		ext = tok.String()
    	}
    	if p.peek() == lex.LSH {
    		// parses left shift amount applied after extension: <<Amount
    		p.get(lex.LSH)
    		tok := p.get(scanner.Int)
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  6. cmd/test-utils_test.go

    	if err != nil {
    		return nil, nil, fmt.Errorf("failed to generate private key: %w", err)
    	}
    
    	notBefore := time.Now()
    	notAfter := notBefore.Add(validFor)
    
    	serialNumberLimit := new(big.Int).Lsh(big.NewInt(1), 128)
    	serialNumber, err := crand.Int(crand.Reader, serialNumberLimit)
    	if err != nil {
    		return nil, nil, fmt.Errorf("failed to generate serial number: %w", err)
    	}
    
    	template := x509.Certificate{
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:06:57 GMT 2024
    - 75.7K bytes
    - Viewed (0)
  7. api/go1.13.txt

    pkg syscall (netbsd-arm64-cgo), const BPF_LDX ideal-int
    pkg syscall (netbsd-arm64-cgo), const BPF_LEN = 128
    pkg syscall (netbsd-arm64-cgo), const BPF_LEN ideal-int
    pkg syscall (netbsd-arm64-cgo), const BPF_LSH = 96
    pkg syscall (netbsd-arm64-cgo), const BPF_LSH ideal-int
    pkg syscall (netbsd-arm64-cgo), const BPF_MAJOR_VERSION = 1
    pkg syscall (netbsd-arm64-cgo), const BPF_MAJOR_VERSION ideal-int
    pkg syscall (netbsd-arm64-cgo), const BPF_MAXBUFSIZE = 16777216
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Aug 08 18:44:16 GMT 2019
    - 452.6K bytes
    - Viewed (0)
  8. api/go1.1.txt

    pkg syscall (darwin-386), const BPF_K = 0
    pkg syscall (darwin-386), const BPF_LD = 0
    pkg syscall (darwin-386), const BPF_LDX = 1
    pkg syscall (darwin-386), const BPF_LEN = 128
    pkg syscall (darwin-386), const BPF_LSH = 96
    pkg syscall (darwin-386), const BPF_MAJOR_VERSION = 1
    pkg syscall (darwin-386), const BPF_MAXBUFSIZE = 524288
    pkg syscall (darwin-386), const BPF_MAXINSNS = 512
    pkg syscall (darwin-386), const BPF_MEM = 96
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Mar 31 20:37:15 GMT 2022
    - 2.6M bytes
    - Viewed (0)
  9. api/go1.2.txt

    pkg syscall (freebsd-386-cgo), const BPF_LD ideal-int
    pkg syscall (freebsd-386-cgo), const BPF_LDX ideal-int
    pkg syscall (freebsd-386-cgo), const BPF_LEN ideal-int
    pkg syscall (freebsd-386-cgo), const BPF_LSH ideal-int
    pkg syscall (freebsd-386-cgo), const BPF_MAJOR_VERSION ideal-int
    pkg syscall (freebsd-386-cgo), const BPF_MAXBUFSIZE ideal-int
    pkg syscall (freebsd-386-cgo), const BPF_MAXINSNS ideal-int
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Oct 18 04:36:59 GMT 2013
    - 1.9M bytes
    - Viewed (2)
  10. api/go1.20.txt

    pkg syscall (freebsd-riscv64), const BPF_LEN = 128 #53466
    pkg syscall (freebsd-riscv64), const BPF_LEN ideal-int #53466
    pkg syscall (freebsd-riscv64), const BPF_LSH = 96 #53466
    pkg syscall (freebsd-riscv64), const BPF_LSH ideal-int #53466
    pkg syscall (freebsd-riscv64), const BPF_MAJOR_VERSION = 1 #53466
    pkg syscall (freebsd-riscv64), const BPF_MAJOR_VERSION ideal-int #53466
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Feb 17 21:23:32 GMT 2023
    - 602.6K bytes
    - Viewed (0)
Back to top