- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 199 for Shift2 (0.3 sec)
-
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) -
hack/grab-profiles.sh
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 17 06:47:05 UTC 2021 - 8.4K 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/math/big/decimal.go
// zero bits from m to reduce shift amount that needs to be done in // decimal format (since that is likely slower). if shift < 0 { ntz := m.trailingZeroBits() s := uint(-shift) if s >= ntz { s = ntz // shift at most ntz bits } m = nat(nil).shr(m, s) shift += int(s) } // Do any shift left in binary representation. if shift > 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 29 22:45:29 UTC 2020 - 6.6K 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) -
src/strconv/decimal_test.go
} func TestDecimalShift(t *testing.T) { for i := 0; i < len(shifttests); i++ { test := &shifttests[i] d := NewDecimal(test.i) d.Shift(test.shift) s := d.String() if s != test.out { t.Errorf("Decimal %v << %v = %v, want %v", test.i, test.shift, s, test.out) } } } type roundTest struct { i uint64 nd int down, round, up string int uint64
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 08 04:08:51 UTC 2014 - 3K 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/cmd/vendor/golang.org/x/arch/arm/armasm/inst.go
return "BE" } return "LE" } // A Shift describes an ARM shift operation. type Shift uint8 const ( ShiftLeft Shift = 0 // left shift ShiftRight Shift = 1 // logical (unsigned) right shift ShiftRightSigned Shift = 2 // arithmetic (signed) right shift RotateRight Shift = 3 // right rotate RotateRightExt Shift = 4 // right rotate through carry (Count will always be 1) )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 29 22:23:32 UTC 2017 - 7.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)