Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 140 for Shift2 (0.33 sec)

  1. src/cmd/compile/internal/ssa/shift_test.go

    			Valu("c", OpConst64, c.config.Types.UInt64, amount, nil),
    			Valu("shift", op, typ, 0, nil, "load", "c"),
    			Valu("store", OpStore, types.TypeMem, 0, c.config.Types.UInt64, "resptr", "shift", "mem"),
    			Exit("store")))
    	Compile(fun.f)
    	return fun
    }
    
    func TestShiftToExtensionAMD64(t *testing.T) {
    	c := testConfig(t)
    	// Test that eligible pairs of constant shifts are converted to extensions.
    	// For example:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 4K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. src/cmd/compile/internal/test/testdata/gen/arithConstGen.go

    						fncCnst1.Execute(w, fd)
    						fd.Number = number
    					}
    
    					fncCnst2.Execute(w, fd)
    				}
    			}
    
    			// signed test cases
    			if len(s.i) > 0 {
    				// don't generate tests for shifts by signed integers
    				if o.name == "lsh" || o.name == "rsh" {
    					continue
    				}
    				for _, i := range s.i {
    					fd.Number = fmt.Sprintf("%d", i)
    					fd.FNumber = strings.Replace(fd.Number, "-", "Neg", -1)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 8.3K bytes
    - Viewed (0)
  5. 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)
  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. src/cmd/compile/internal/ir/bitset.go

    	} else {
    		*(*uint8)(f) &^= mask
    	}
    }
    
    func (f bitset8) get2(shift uint8) uint8 {
    	return uint8(f>>shift) & 3
    }
    
    // set2 sets two bits in f using the bottom two bits of b.
    func (f *bitset8) set2(shift uint8, b uint8) {
    	// Clear old bits.
    	*(*uint8)(f) &^= 3 << shift
    	// Set new bits.
    	*(*uint8)(f) |= uint8(b&3) << shift
    }
    
    type bitset16 uint16
    
    func (f *bitset16) set(mask uint16, b bool) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 29 22:03:56 UTC 2022
    - 734 bytes
    - Viewed (0)
  8. test/fixedbugs/issue60601.go

    import (
    	"strings"
    	"unsafe"
    )
    
    func shift[T any]() int64 {
    	return 1 << unsafe.Sizeof(*new(T))
    }
    
    func div[T any]() uintptr {
    	return 1 / unsafe.Sizeof(*new(T))
    }
    
    func add[T any]() int64 {
    	return 1<<63 - 1 + int64(unsafe.Sizeof(*new(T)))
    }
    
    func main() {
    	shift[[62]byte]()
    	shift[[63]byte]()
    	shift[[64]byte]()
    	shift[[100]byte]()
    	shift[[1e6]byte]()
    
    	add[[1]byte]()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 15 18:41:09 UTC 2023
    - 862 bytes
    - Viewed (0)
  9. 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)
  10. src/runtime/libfuzzer_amd64.s

    // as well as
    // https://github.com/llvm/llvm-project/blob/704d92607d26e696daba596b72cb70effe79a872/compiler-rt/lib/fuzzer/FuzzerValueBitMap.h#L34
    // ValueProfileMap.AddValue() truncates its argument to 16 bits and shifts the
    // PC to the left by log_2(128)=7, which means that only the lowest 16 - 7 bits
    // of the return address matter. String compare hooks use the lowest 12 bits,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 10 04:57:07 UTC 2023
    - 5K bytes
    - Viewed (0)
Back to top