Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 140 for Shift2 (0.09 sec)

  1. test/fixedbugs/bug193.go

    // license that can be found in the LICENSE file.
    
    package main
    
    func main() {
    	s := uint(10)
    	ss := 1 << s
    	y1 := float64(ss)
    	y2 := float64(1 << s) // ERROR "shift"
    	y3 := string(1 << s)  // ERROR "shift"
    	_, _, _, _, _ = s, ss, y1, y2, y3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 18 23:59:40 UTC 2022
    - 368 bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/test_vet.txt

    ! go test p1_test.go
    stderr 'Logf format %d'
    go test -vet=off
    stdout '^ok'
    
    # Non-test file
    ! go test p1.go
    stderr 'Printf format %d'
    go test -x -vet=shift p1.go
    stderr '[\\/]vet.*-shift'
    stdout '\[no test files\]'
    go test -vet=off p1.go
    ! stderr '[\\/]vet.*-shift'
    stdout '\[no test files\]'
    
    # ensure all runs non-default vet
    ! go test -vet=all ./vetall/...
    stderr 'using resp before checking for errors'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 27 20:14:44 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  3. samples/helloworld/gen-helloworld.sh

      case "$1" in
        -h|--help)
          display_usage
          exit 0
          ;;
    
        --version)
          SERVICE_VERSION=$2
          shift 2
          ;;
    
        --includeService)
          INCLUDE_SERVICE=$2
          shift 2
          ;;
    
        --includeDeployment)
          INCLUDE_DEPLOYMENT=$2
          shift 2
          ;;
    
        *)
          echo "Error: Unsupported flag $1" >&2
          display_usage
          exit 1
          ;;
      esac
    done
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Sep 19 14:18:35 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  4. tools/go-stress-test

            -test.count=*) COUNT="${1#-test.count=}" ;;
            -stress.runs=*) RUNS="${1#-stress.runs=}" ;;
            -stress.runs) RUNS="${2}"; shift ;;
            -stress.time=*) TIME="${1#-stress.time=}" ;;
            -stress.time) TIME="${2}"; shift ;;
        esac
        shift
    done
    
    RESULTS=/tmp/test-results"$(dirname ${binary})"
    mkdir -p "${RESULTS}"
    code=0
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 04 23:04:41 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  5. src/math/big/arith_arm.s

    	MOVW.W	-4(R2), R6
    	ORR	R6>>R4, R7
    	MOVW.W	R7, -4(R5)
    	MOVW	R6<<R3, R7
    E7:
    	TEQ	R1, R5
    	BNE	L7
    
    	MOVW	R7, -4(R5)
    	RET
    
    Y7:	// copy loop, because shift 0 == shift 32
    	MOVW.W	-4(R2), R6
    	MOVW.W	R6, -4(R5)
    	TEQ	R1, R5
    	BNE Y7
    
    X7:
    	MOVW	$0, R1
    	MOVW	R1, c+28(FP)
    	RET
    
    
    // func shrVU(z, x []Word, s uint) (c Word)
    TEXT ·shrVU(SB),NOSPLIT,$0
    	MOVW	z_len+4(FP), R5
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 4K bytes
    - Viewed (0)
  6. src/syscall/mksyscall_libc.pl

    binmode STDOUT;
    
    if($ARGV[0] eq "-b32") {
    	$_32bit = "big-endian";
    	shift;
    } elsif($ARGV[0] eq "-l32") {
    	$_32bit = "little-endian";
    	shift;
    }
    if($ARGV[0] eq "-aix") {
    	$aix = 1;
    	shift;
    }
    if($ARGV[0] eq "-solaris") {
    	$solaris = 1;
    	shift;
    }
    if($ARGV[0] eq "-tags") {
    	shift;
    	$tags = $ARGV[0];
    	shift;
    }
    
    
    if($ARGV[0] =~ /^-/) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 23 11:28:51 UTC 2023
    - 8K bytes
    - Viewed (0)
  7. pkg/kubelet/cm/topologymanager/bitmask/bitmask.go

    	return *s > *mask.(*bitMask)
    }
    
    // String converts mask to string
    func (s *bitMask) String() string {
    	grouping := 2
    	for shift := 64 - grouping; shift > 0; shift -= grouping {
    		if *s > (1 << uint(shift)) {
    			return fmt.Sprintf("%0"+strconv.Itoa(shift+grouping)+"b", *s)
    		}
    	}
    	return fmt.Sprintf("%0"+strconv.Itoa(grouping)+"b", *s)
    }
    
    // Count counts number of bits in mask set to one
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 03 09:45:09 UTC 2022
    - 5.1K bytes
    - Viewed (0)
  8. src/internal/coverage/slicereader/slicereader.go

    	rv := binary.LittleEndian.Uint64(r.b[int(r.off):end:end])
    	r.off += 8
    	return rv
    }
    
    func (r *Reader) ReadULEB128() (value uint64) {
    	var shift uint
    
    	for {
    		b := r.b[r.off]
    		r.off++
    		value |= (uint64(b&0x7F) << shift)
    		if b&0x80 == 0 {
    			break
    		}
    		shift += 7
    	}
    	return
    }
    
    func (r *Reader) ReadString(len int64) string {
    	b := r.b[r.off : r.off+len]
    	r.off += len
    	if r.readonly {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 11:36:28 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/_gen/RISCV64latelower.rules

    // Copyright 2022 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Fold constant shift with extension.
    (SRAI [c] (MOVBreg  x)) && c <   8 => (SRAI [56+c] (SLLI <typ.Int64> [56] x))
    (SRAI [c] (MOVHreg  x)) && c <  16 => (SRAI [48+c] (SLLI <typ.Int64> [48] x))
    (SRAI [c] (MOVWreg  x)) && c <  32 => (SRAI [32+c] (SLLI <typ.Int64> [32] x))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 03:45:10 UTC 2022
    - 980 bytes
    - Viewed (0)
  10. cmd/kubeadm/app/cmd/completion.go

    }
    
    __kubeadm_compgen() {
    	local completions w
    	completions=( $(compgen "$@") ) || return $?
    
    	# filter by given word as prefix
    	while [[ "$1" = -* && "$1" != -- ]]; do
    		shift
    		shift
    	done
    	if [[ "$1" == -- ]]; then
    		shift
    	fi
    	for w in "${completions[@]}"; do
    		if [[ "${w}" = "$1"* ]]; then
    			echo "${w}"
    		fi
    	done
    }
    
    __kubeadm_compopt() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Dec 25 09:28:34 UTC 2023
    - 8.1K bytes
    - Viewed (0)
Back to top