- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestMagicUnsigned (0.11 sec)
-
src/cmd/compile/internal/ssa/magic_test.go
want := i / c got := (i * (max + m)) >> (n + uint(s)) if want != got { t.Errorf("unsigned magic wrong for %d / %d: got %d, want %d (m=%d,s=%d)\n", i, c, got, want, m, s) } } } } func TestMagicUnsigned(t *testing.T) { One := new(big.Int).SetUint64(1) for _, n := range [...]uint{8, 16, 32, 64} { TwoN := new(big.Int).Lsh(One, n) Max := new(big.Int).Sub(TwoN, One) for _, c := range [...]uint64{ 3, 5,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 30 22:02:07 UTC 2019 - 9.1K bytes - Viewed (0)