Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 106 for shifts (0.21 sec)

  1. src/slices/slices.go

    		// s: aaaaaaaavvvvbbbbcccccccc
    		//            ^   ^       ^   ^
    		//            i  i+m      n  n+m
    		// That's the result we want.
    		return s
    	}
    
    	// The hard case - v overlaps c or d. We can't just shift up
    	// the data because we'd move or clobber the values we're trying
    	// to insert.
    	// So instead, write v on top of d, then rotate.
    	copy(s[n:], v)
    
    	// Now we have
    	// s: aaaaaaaabbbbccccccccvvvv
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 29 14:01:59 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/magic.go

    //          = ⎡2^(n+s-1)/c⎤
    //          = ⎡m/2⎤
    //   ⎣x / c⎦ = ⎣x' * m' / 2^(n'+s')⎦
    //   ⎣x / c⎦ = ⎣⎣x/2⎦ * ⎡m/2⎤ / 2^(n+s-2)⎦
    //   ⎣x / c⎦ = ⎣⎣⎣x/2⎦ * ⎡m/2⎤ / 2^n⎦ / 2^(s-2)⎦
    //   shift + multiply + shift
    //
    // Case 3: everything else
    //   let k = m - 2^n. k fits in n bits.
    //   ⎣x / c⎦ = ⎣x * m / 2^(n+s)⎦
    //   ⎣x / c⎦ = ⎣x * (2^n + k) / 2^(n+s)⎦
    //   ⎣x / c⎦ = ⎣(x + x * k / 2^n) / 2^s⎦
    //   ⎣x / c⎦ = ⎣(x + ⎣x * k / 2^n⎦) / 2^s⎦
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:25 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  3. src/internal/types/testdata/check/builtins0.go

    	var a []complex64
    	_ = imag(a... /* ERROR "invalid use of ..." */ )
    
    	// if argument is untyped, result is untyped
    	const _ byte = imag(1.2 + 3i)
    	const _ complex128 = imag(1.2 + 3i)
    
    	// lhs constant shift operands are typed as complex128
    	var s uint
    	_ = imag(1 /* ERROR "must be integer" */ << s)
    }
    
    func imag2() {
    	f1 := func() (x complex128) { return }
    	f2 := func() (x, y complex128) { return }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  4. build/common.sh

      # Everything before "--" is an arg to docker
      until [ -z "${1-}" ] ; do
        if [[ "$1" == "--" ]]; then
          shift
          break
        fi
        docker_run_opts+=("$1")
        if [[ "$1" == "-d" || "$1" == "--detach" ]] ; then
          detach=true
        fi
        shift
      done
    
      # Everything after "--" is the command to run
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 16:13:15 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  5. src/runtime/mgcwork.go

    	//
    	// This can be thought of as a stack of both work buffers'
    	// pointers concatenated. When we pop the last pointer, we
    	// shift the stack up by one work buffer by bringing in a new
    	// full buffer and discarding an empty one. When we fill both
    	// buffers, we shift the stack down by one work buffer by
    	// bringing in a new empty buffer and discarding a full one.
    	// This way we have one buffer's worth of hysteresis, which
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/internal/typesinternal/errorcode.go

    	//  var x = s[1:2:3]
    	InvalidSliceExpr
    
    	/* exprs > shift */
    
    	// InvalidShiftCount occurs when the right-hand side of a shift operation is
    	// either non-integer, negative, or too large.
    	//
    	// Example:
    	//  var (
    	//  	x string
    	//  	y int = 1 << x
    	//  )
    	InvalidShiftCount
    
    	// InvalidShiftOperand occurs when the shifted operand is not an integer.
    	//
    	// Example:
    	//  var s = "hello"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 34K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/primitives/UnsignedLongs.java

          if ((radix & (radix - 1)) == 0) {
            // Radix is a power of two so we can avoid division.
            int shift = Integer.numberOfTrailingZeros(radix);
            int mask = radix - 1;
            do {
              buf[--i] = Character.forDigit(((int) x) & mask, radix);
              x >>>= shift;
            } while (x != 0);
          } else {
            // Separate off the last digit using unsigned division. That will leave
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/primitives/UnsignedLongs.java

          if ((radix & (radix - 1)) == 0) {
            // Radix is a power of two so we can avoid division.
            int shift = Integer.numberOfTrailingZeros(radix);
            int mask = radix - 1;
            do {
              buf[--i] = Character.forDigit(((int) x) & mask, radix);
              x >>>= shift;
            } while (x != 0);
          } else {
            // Separate off the last digit using unsigned division. That will leave
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  9. src/image/gif/writer_test.go

    			return
    		}
    
    		rednessAt := func(x int, y int) uint32 {
    			r, _, _, _ := m.At(x, y).RGBA()
    			// Shift by 8 to convert from 16 bit color to 8 bit color.
    			return r >> 8
    		}
    
    		// Round-tripping a still (non-animated) image.Image through
    		// Encode+Decode should shift the origin to (0, 0).
    		if got, want := rednessAt(0, 0), uint32(0x22); got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 19K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go

    	Freq      int64
    	Maxerror  int64
    	Esterror  int64
    	Status    int32
    	Constant  int64
    	Precision int64
    	Tolerance int64
    	Time      Timeval
    	Tick      int64
    	Ppsfreq   int64
    	Jitter    int64
    	Shift     int32
    	Stabil    int64
    	Jitcnt    int64
    	Calcnt    int64
    	Errcnt    int64
    	Stbcnt    int64
    	Tai       int32
    	_         [44]byte
    }
    
    type Time_t int64
    
    type Tms struct {
    	Utime  int64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.1K bytes
    - Viewed (0)
Back to top