Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 53 for SHL (0.02 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/shift/shift.go

    	}
    	inspect.Preorder(nodeFilter, func(node ast.Node) {
    		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
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. src/math/big/ftoa.go

    	// x (i.e., for mant we want x.prec + 1 bits).
    	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
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 13.5K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt

      writeByte(medium.ushr(8) and 0xff)
      writeByte(medium and 0xff)
    }
    
    @Throws(IOException::class)
    internal fun BufferedSource.readMedium(): Int {
      return (
        readByte() and 0xff shl 16
          or (readByte() and 0xff shl 8)
          or (readByte() and 0xff)
      )
    }
    
    /** Run [block] until it either throws an [IOException] or completes. */
    internal inline fun ignoreIoExceptions(block: () -> Unit) {
      try {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon May 13 13:42:37 UTC 2024
    - 11K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/-HostnamesCommon.kt

        // Read a group, one to four hex digits.
        var value = 0
        groupOffset = i
        while (i < limit) {
          val hexDigit = input[i].parseHexDigit()
          if (hexDigit == -1) break
          value = (value shl 4) + hexDigit
          i++
        }
        val groupLength = i - groupOffset
        if (groupLength == 0 || groupLength > 4) return null // Group is the wrong size.
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/url/-Url.kt

        if (codePoint == '%'.code && i + 2 < limit) {
          val d1 = encoded[i + 1].parseHexDigit()
          val d2 = encoded[i + 2].parseHexDigit()
          if (d1 != -1 && d2 != -1) {
            writeByte((d1 shl 4) + d2)
            i += 2
            i += Character.charCount(codePoint)
            continue
          }
        } else if (codePoint == '+'.code && plusIsSpace) {
          writeByte(' '.code)
          i++
          continue
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Tue Jan 09 12:33:05 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  6. 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,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 15.6K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/http2/Hpack.kt

            while (true) {
              val b = readByte()
              if (b and 0x80 != 0) { // Equivalent to (b >= 128) since b is in [0..255].
                result += b and 0x7f shl shift
                shift += 7
              } else {
                result += b shl shift // Last byte.
                break
              }
            }
            return result
          }
    
          /** Reads a potentially Huffman encoded byte string. */
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  8. src/math/big/ratconv.go

    	}
    
    	// apply exp2 contributions
    	if exp2 < -1e7 || exp2 > 1e7 {
    		return nil, false // avoid excessively large exponents
    	}
    	if exp2 > 0 {
    		z.a.abs = z.a.abs.shl(z.a.abs, uint(exp2))
    	} else if exp2 < 0 {
    		z.b.abs = z.b.abs.shl(z.b.abs, uint(-exp2))
    	}
    
    	z.a.neg = neg && len(z.a.abs) > 0 // 0 has no sign
    
    	return z.norm(), true
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 15 22:16:34 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  9. src/math/big/decimal.go

    		s := uint(-shift)
    		if s >= ntz {
    			s = ntz // shift at most ntz bits
    		}
    		m = nat(nil).shr(m, s)
    		shift += int(s)
    	}
    
    	// Do any shift left in binary representation.
    	if shift > 0 {
    		m = nat(nil).shl(m, uint(shift))
    		shift = 0
    	}
    
    	// Convert mantissa into decimal representation.
    	s := m.utoa(10)
    	n := len(s)
    	x.exp = n
    	// Trim trailing zeros; instead the exponent is tracking
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 29 22:45:29 UTC 2020
    - 6.6K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/arch/x86/x86asm/plan9x.go

    	POPA:      true,
    	POPCNT:    true,
    	PUSH:      true,
    	PUSHA:     true,
    	RCL:       true,
    	RCR:       true,
    	ROL:       true,
    	ROR:       true,
    	SAR:       true,
    	SBB:       true,
    	SHL:       true,
    	SHLD:      true,
    	SHR:       true,
    	SHRD:      true,
    	SUB:       true,
    	TEST:      true,
    	XADD:      true,
    	XCHG:      true,
    	XOR:       true,
    }
    
    var plan9Reg = [...]string{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 12 20:38:21 UTC 2023
    - 7.2K bytes
    - Viewed (0)
Back to top