- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 118 for Shift1 (0.11 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
tensorflow/compiler/mlir/quantization/stablehlo/utils/math_utils.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 08:32:43 UTC 2024 - 2.1K bytes - Viewed (0) -
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)