Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 44 for shr (0.06 sec)

  1. test/codegen/memcombine.go

    func store_le64(b []byte, x uint64) {
    	// amd64:`MOVQ\s.*\(.*\)$`,-`SHR.`
    	// arm64:`MOVD`,-`MOV[WBH]`
    	// ppc64le:`MOVD\s`,-`MOV[BHW]\s`
    	// ppc64:`MOVDBR`,-MOVB\s`
    	// s390x:`MOVDBR\s.*\(.*\)$`
    	binary.LittleEndian.PutUint64(b, x)
    }
    
    func store_le64_idx(b []byte, x uint64, idx int) {
    	// amd64:`MOVQ\s.*\(.*\)\(.*\*1\)$`,-`SHR.`
    	// arm64:`MOVD\sR[0-9]+,\s\(R[0-9]+\)\(R[0-9]+\)`,-`MOV[BHW]`
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 19:45:41 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  2. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsRecordCodec.kt

        val result = mutableListOf<InetAddress>()
    
        val buf = Buffer()
        buf.write(byteString)
        buf.readShort() // query id
    
        val flags = buf.readShort().toInt() and 0xffff
        require(flags shr 15 != 0) { "not a response" }
    
        val responseCode = flags and 0xf
    
        if (responseCode == NXDOMAIN) {
          throw UnknownHostException("$hostname: NXDOMAIN")
        } else if (responseCode == SERVFAIL) {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  3. src/math/big/nat_test.go

    	})
    	b.Run("ShlSame", func(b *testing.B) {
    		for i := 0; i < b.N; i++ {
    			x.shl(x, 0)
    		}
    	})
    
    	b.Run("Shr", func(b *testing.B) {
    		for i := 0; i < b.N; i++ {
    			var z nat
    			z.shr(x, 0)
    		}
    	})
    	b.Run("ShrSame", func(b *testing.B) {
    		for i := 0; i < b.N; i++ {
    			x.shr(x, 0)
    		}
    	})
    }
    
    type modWTest struct {
    	in       string
    	dividend string
    	out      string
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 09 15:29:36 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  4. src/crypto/sha512/sha512block_riscv64.s

    	SLL	$8, X7; \
    	OR	X5, X7, X5; \
    	OR	X5, X8, X5; \
    	MOV	X5, (index*8)(X19)
    
    // Wt = SIGMA1(Wt-2) + Wt-7 + SIGMA0(Wt-15) + Wt-16; for 16 <= t <= 79
    //   SIGMA0(x) = ROTR(1,x) XOR ROTR(8,x) XOR SHR(7,x)
    //   SIGMA1(x) = ROTR(19,x) XOR ROTR(61,x) XOR SHR(6,x)
    #define MSGSCHEDULE1(index) \
    	MOV	(((index-2)&0xf)*8)(X19), X5; \
    	MOV	(((index-15)&0xf)*8)(X19), X6; \
    	MOV	(((index-7)&0xf)*8)(X19), X9; \
    	MOV	(((index-16)&0xf)*8)(X19), X21; \
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 14:57:07 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  5. src/crypto/sha256/sha256block_386.s

    	MOVL	(index*4)(SI), AX; \
    	BSWAPL	AX; \
    	MOVL	AX, (index*4)(BP)
    
    // Wt = SIGMA1(Wt-2) + Wt-7 + SIGMA0(Wt-15) + Wt-16; for 16 <= t <= 63
    //   SIGMA0(x) = ROTR(7,x) XOR ROTR(18,x) XOR SHR(3,x)
    //   SIGMA1(x) = ROTR(17,x) XOR ROTR(19,x) XOR SHR(10,x)
    #define MSGSCHEDULE1(index) \
    	MOVL	((index-2)*4)(BP), AX; \
    	MOVL	AX, CX; \
    	RORL	$17, AX; \
    	MOVL	CX, DX; \
    	RORL	$19, CX; \
    	SHRL	$10, DX; \
    	MOVL	((index-15)*4)(BP), BX; \
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/shift/shift.go

    		if dead[node] {
    			// Skip shift checks on unreachable nodes.
    			return
    		}
    
    		switch node := node.(type) {
    		case *ast.BinaryExpr:
    			if node.Op == token.SHL || node.Op == token.SHR {
    				checkLongShift(pass, node, node.X, node.Y)
    			}
    		case *ast.AssignStmt:
    			if len(node.Lhs) != 1 || len(node.Rhs) != 1 {
    				return
    			}
    			if node.Tok == token.SHL_ASSIGN || node.Tok == token.SHR_ASSIGN {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  7. src/math/big/ftoa.go

    	mant := nat(nil).set(x.mant)
    	exp := int(x.exp) - mant.bitLen()
    	s := mant.bitLen() - int(x.prec+1)
    	switch {
    	case s < 0:
    		mant = mant.shl(mant, uint(-s))
    	case s > 0:
    		mant = mant.shr(mant, uint(+s))
    	}
    	exp += s
    	// x = mant * 2**exp with lsb(mant) == 1/2 ulp of x.prec
    
    	// 2) Compute lower bound by subtracting 1/2 ulp.
    	var lower decimal
    	var tmp nat
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 13.5K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/url/-Url.kt

          }
    
          while (!encodedCharBuffer.exhausted()) {
            val b = encodedCharBuffer.readByte().toInt() and 0xff
            writeByte('%'.code)
            writeByte(HEX_DIGITS[b shr 4 and 0xf].code)
            writeByte(HEX_DIGITS[b and 0xf].code)
          }
        } else {
          // This character doesn't need encoding. Just copy it over.
          writeUtf8CodePoint(codePoint)
        }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Tue Jan 09 12:33:05 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  9. src/math/big/prime.go

    // The number n is known to be non-zero.
    func (n nat) probablyPrimeMillerRabin(reps int, force2 bool) bool {
    	nm1 := nat(nil).sub(n, natOne)
    	// determine q, k such that nm1 = q << k
    	k := nm1.trailingZeroBits()
    	q := nat(nil).shr(nm1, k)
    
    	nm3 := nat(nil).sub(nm1, natTwo)
    	rand := rand.New(rand.NewSource(int64(n[0])))
    
    	var x, y, quotient nat
    	nm3Len := nm3.bitLen()
    
    NextRandom:
    	for i := 0; i < reps; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 02 14:43:52 UTC 2022
    - 10.4K bytes
    - Viewed (0)
  10. src/go/constant/value_test.go

    }
    
    var optab = map[string]token.Token{
    	"!": token.NOT,
    
    	"+": token.ADD,
    	"-": token.SUB,
    	"*": token.MUL,
    	"/": token.QUO,
    	"%": token.REM,
    
    	"<<": token.SHL,
    	">>": token.SHR,
    
    	"&":  token.AND,
    	"|":  token.OR,
    	"^":  token.XOR,
    	"&^": token.AND_NOT,
    
    	"==": token.EQL,
    	"!=": token.NEQ,
    	"<":  token.LSS,
    	"<=": token.LEQ,
    	">":  token.GTR,
    	">=": token.GEQ,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 15.6K bytes
    - Viewed (0)
Back to top