Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 48 for shifts (0.34 sec)

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

    			}
    		}
    	})
    	return nil, nil
    }
    
    // checkLongShift checks if shift or shift-assign operations shift by more than
    // the length of the underlying variable.
    func checkLongShift(pass *analysis.Pass, node ast.Node, x, y ast.Expr) {
    	if pass.TypesInfo.Types[x].Value != nil {
    		// Ignore shifts of constants.
    		// These are frequently used for bit-twiddling tricks
    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/strconv/itoa.go

    		// the compiler to generate better code for the shift operation.
    		shift := uint(bits.TrailingZeros(uint(base))) & 7
    		b := uint64(base)
    		m := uint(base) - 1 // == 1<<shift - 1
    		for u >= b {
    			i--
    			a[i] = digits[uint(u)&m]
    			u >>= shift
    		}
    		// u < base
    		i--
    		a[i] = digits[uint(u)]
    	} else {
    		// general case
    		b := uint64(base)
    		for u >= b {
    			i--
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:28 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  3. src/crypto/des/block.go

    }
    
    // Expand 48-bit input to 64-bit, with each 6-bit block padded by extra two bits at the top.
    // By doing so, we can have the input blocks (four bits each), and the key blocks (six bits each) well-aligned without
    // extra shifts/rotations for alignments.
    func unpack(x uint64) uint64 {
    	return ((x>>(6*1))&0xff)<<(8*0) |
    		((x>>(6*3))&0xff)<<(8*1) |
    		((x>>(6*5))&0xff)<<(8*2) |
    		((x>>(6*7))&0xff)<<(8*3) |
    		((x>>(6*0))&0xff)<<(8*4) |
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  4. src/runtime/mcentral.go

    	size := uintptr(class_to_size[c.spanclass.sizeclass()])
    
    	s := mheap_.alloc(npages, c.spanclass)
    	if s == nil {
    		return nil
    	}
    
    	// Use division by multiplication and shifts to quickly compute:
    	// n := (npages << _PageShift) / size
    	n := s.divideByElemSize(npages << _PageShift)
    	s.limit = s.base() + size*n
    	s.initHeapBits(false)
    	return s
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  5. src/crypto/md5/gen.go

    	if err != nil {
    		log.Fatal(err)
    	}
    	err = os.WriteFile(*filename, data, 0644)
    	if err != nil {
    		log.Fatal(err)
    	}
    }
    
    type Data struct {
    	a, b, c, d string
    	Shift1     []int
    	Shift2     []int
    	Shift3     []int
    	Shift4     []int
    	Table1     []uint32
    	Table2     []uint32
    	Table3     []uint32
    	Table4     []uint32
    }
    
    var funcs = template.FuncMap{
    	"dup":     dup,
    	"relabel": relabel,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/utils/math_utils_test.cc

    TEST(UtilsTest, QuantizeMultiplierNormalMultipliers) {
      int32_t quantized_fraction;
      int32_t shift;
    
      EXPECT_TRUE(succeeded(QuantizeMultiplier(1.2, quantized_fraction, shift)));
      EXPECT_EQ(quantized_fraction, 19661);
      EXPECT_EQ(shift, 1);
    
      EXPECT_TRUE(succeeded(QuantizeMultiplier(15.5, quantized_fraction, shift)));
      EXPECT_EQ(quantized_fraction, 31744);
      EXPECT_EQ(shift, 4);
    
      EXPECT_TRUE(succeeded(QuantizeMultiplier(1, quantized_fraction, shift)));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 05:58:41 UTC 2024
    - 2K bytes
    - Viewed (0)
  7. hack/golangci-hints.yaml

    # enable an increasing amount of checks:
    # - golangci.yaml is the most permissive configuration. All existing code
    #   passed.
    # - golangci-strict.yaml adds checks that all new code in pull requests
    #   must pass.
    # - golangci-hints.yaml adds checks for code patterns where developer
    #   and reviewer may decide whether findings should get addressed before
    #   merging. Beware that the golangci-lint output includes also the
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 12:10:09 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/util/intstr/generated.pb.go

    		case 0:
    			for shift := uint(0); ; shift += 7 {
    				if shift >= 64 {
    					return 0, ErrIntOverflowGenerated
    				}
    				if iNdEx >= l {
    					return 0, io.ErrUnexpectedEOF
    				}
    				iNdEx++
    				if dAtA[iNdEx-1] < 0x80 {
    					break
    				}
    			}
    		case 1:
    			iNdEx += 8
    		case 2:
    			var length int
    			for shift := uint(0); ; shift += 7 {
    				if shift >= 64 {
    					return 0, ErrIntOverflowGenerated
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/utils/math_utils.cc

      // no matter what.
      if (quantized_fraction == (1L << 15)) {
        quantized_fraction /= 2;
        ++shift;
      }
      if (shift < -15) {
        shift = 0;
        quantized_fraction = 0;
      }
      if (shift > 14) {
        shift = 14;
        quantized_fraction = (1LL << 15) - 1;
      }
      return success();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 08:32:43 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  10. src/crypto/md5/md5block_amd64.s

    #define ROUND3FIRST(a, b, c, d, index, const, shift) \
    	MOVL	d,		R9; \
    	XORL	c,		R9; \
    	XORL	b,		R9; \
    	ADDL	$const,	a; \
    	ADDL	R8,		a; \
    	MOVL	(index*4)(SI),R8; \
    	ADDL	R9,		a; \
    	ROLL	$shift,		a; \
    	ADDL	b,		a
    
    #define ROUND3(a, b, c, d, index, const, shift) \
    	XORL	a,		R9; \
    	XORL	b,		R9; \
    	ADDL	$const,	a; \
    	ADDL	R8,		a; \
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top