Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for SHL (0.02 sec)

  1. src/cmd/compile/internal/ssa/_gen/AMD64.rules

    // fold shifts into LEAQx/LEALx
    (LEA(Q|L)1 [c] {s} x (SHL(Q|L)const [1] y)) => (LEA(Q|L)2 [c] {s} x y)
    (LEA(Q|L)1 [c] {s} x (SHL(Q|L)const [2] y)) => (LEA(Q|L)4 [c] {s} x y)
    (LEA(Q|L)1 [c] {s} x (SHL(Q|L)const [3] y)) => (LEA(Q|L)8 [c] {s} x y)
    (LEA(Q|L)2 [c] {s} x (SHL(Q|L)const [1] y)) => (LEA(Q|L)4 [c] {s} x y)
    (LEA(Q|L)2 [c] {s} x (SHL(Q|L)const [2] y)) => (LEA(Q|L)8 [c] {s} x y)
    (LEA(Q|L)4 [c] {s} x (SHL(Q|L)const [1] y)) => (LEA(Q|L)8 [c] {s} x y)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 19:38:41 UTC 2024
    - 93.9K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/idn/IdnaMappingTable.kt

            val codepointDelta = (b1 and 0xF shl 14) or (b2 shl 7) or b3
            sink.writeUtf8CodePoint(codePoint - codepointDelta)
          }
          in 80..95 -> {
            // Mapped inline as codePoint delta to add
            val b2 = ranges[rangesIndex + 2].code
            val b3 = ranges[rangesIndex + 3].code
    
            val codepointDelta = (b1 and 0xF shl 14) or (b2 shl 7) or b3
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Tue Apr 02 11:39:58 UTC 2024
    - 9K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/_gen/AMD64latelower.rules

    (MOVWQZX...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 19:38:41 UTC 2024
    - 636 bytes
    - Viewed (0)
  4. test/codegen/shift.go

    	// amd64:"SHRQ.*,.*,"
    	shr := x>>s | y<<ŝ
    	// amd64:"SHLQ.*,.*,"
    	shl := x<<s | y>>ŝ
    	return shr, shl
    }
    
    func checkShiftToMask(u []uint64, s []int64) {
    	// amd64:-"SHR",-"SHL","ANDQ"
    	u[0] = u[0] >> 5 << 5
    	// amd64:-"SAR",-"SHL","ANDQ"
    	s[0] = s[0] >> 5 << 5
    	// amd64:-"SHR",-"SHL","ANDQ"
    	u[1] = u[1] << 5 >> 5
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:53:43 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  5. test/codegen/bits.go

    	// s390x:"RISBGZ\t[$]48, [$]15, [$]0,"
    	return x & 0xffff00000000ffff
    }
    
    func issue44228a(a []int64, i int) bool {
    	// amd64: "BTQ", -"SHL"
    	return a[i>>6]&(1<<(i&63)) != 0
    }
    func issue44228b(a []int32, i int) bool {
    	// amd64: "BTL", -"SHL"
    	return a[i>>5]&(1<<(i&31)) != 0
    }
    
    func issue48467(x, y uint64) uint64 {
    	// arm64: -"NEG"
    	d, borrow := bits.Sub64(x, y, 0)
    	return x - d&(-borrow)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  6. src/math/big/float.go

    	switch {
    	case ex < ey:
    		if al {
    			t := nat(nil).shl(y.mant, uint(ey-ex))
    			z.mant = z.mant.add(x.mant, t)
    		} else {
    			z.mant = z.mant.shl(y.mant, uint(ey-ex))
    			z.mant = z.mant.add(x.mant, z.mant)
    		}
    	default:
    		// ex == ey, no shift needed
    		z.mant = z.mant.add(x.mant, y.mant)
    	case ex > ey:
    		if al {
    			t := nat(nil).shl(x.mant, uint(ex-ey))
    			z.mant = z.mant.add(t, y.mant)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 15:46:54 UTC 2024
    - 44.5K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. okhttp/src/main/kotlin/okhttp3/internal/idn/Punycode.kt

                if (c.isLowSurrogate() || !low.isLowSurrogate()) {
                  '?'.code
                } else {
                  i++
                  0x010000 + (c.code and 0x03ff shl 10 or (low.code and 0x03ff))
                }
              }
    
              else -> c.code
            }
          i++
        }
        return result
      }
    
      private val Int.punycodeDigit: Int
        get() =
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Apr 03 03:04:50 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  10. src/math/big/nat.go

    		return i*_W + uint(bits.TrailingZeros(uint(x[i]))), true
    	}
    	return 0, false
    }
    
    func same(x, y nat) bool {
    	return len(x) == len(y) && len(x) > 0 && &x[0] == &y[0]
    }
    
    // z = x << s
    func (z nat) shl(x nat, s uint) nat {
    	if s == 0 {
    		if same(z, x) {
    			return z
    		}
    		if !alias(z, x) {
    			return z.set(x)
    		}
    	}
    
    	m := len(x)
    	if m == 0 {
    		return z[:0]
    	}
    	// m > 0
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:31:58 UTC 2024
    - 31.7K bytes
    - Viewed (0)
Back to top