Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 78 for Shift2 (0.14 sec)

  1. 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)
  2. 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)
  3. 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)
  4. src/cmd/vet/doc.go

    	nilfunc          check for useless comparisons between functions and nil
    	printf           check consistency of Printf format strings and arguments
    	shift            check for shifts that equal or exceed the width of the integer
    	sigchanyzer      check for unbuffered channel of os.Signal
    	slog             check for invalid structured logging calls
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 00:17:30 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  5. src/cmd/internal/obj/arm64/doc.go

    The instructions are MOVK(W), MOVZ(W) and MOVN(W), the assembly syntax is "op $(uimm16<<shift), <Rd>". The <uimm16>
    is the 16-bit unsigned immediate, in the range 0 to 65535; For the 32-bit variant, the <shift> is 0 or 16, for the
    64-bit variant, the <shift> is 0, 16, 32 or 48.
    
    The current Go assembler does not accept zero shifts, such as "op $0, Rd" and "op $(0<<(16|32|48)), Rd" instructions.
    
    Examples:
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 00:21:42 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  6. src/cmd/internal/obj/arm64/asm_arm64_test.go

    			}
    			if got, want := lo, test.wantLo; got != want {
    				t.Errorf("splitImm24uScaled(%x, %x) - got lo %x, want %x", test.v, test.shift, got, want)
    			}
    		}
    	}
    	for shift := 0; shift <= 3; shift++ {
    		for v := int32(0); v < 0xfff000+0xfff<<shift; v = v + 1<<shift {
    			hi, lo, err := splitImm24uScaled(v, shift)
    			if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 02:46:11 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  7. 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)
  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/lite/quantization/numerical_utils.cc

      if (quantized_multiplier == (1LL << 31)) {
        quantized_multiplier /= 2;
        ++shift;
      }
      assert(quantized_multiplier <= std::numeric_limits<int32_t>::max());
    
      // Check that the shift amount is not greater than 31 or less than -31.
      if (shift > 31 || shift < -31) {
        return {0, 0};
      }
    
      return {static_cast<int32_t>(quantized_multiplier), shift};
    }
    
    // Calculates the quantized range for a given scale, zero point, minimum and
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 17 19:57:04 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  10. 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)
Back to top