- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 553 for Shift1 (0.27 sec)
-
test/shift3.go
f(x<<(1<<x), 4) f(x<<(1.<<x), 4) f(x<<((1+0i)<<x), 4) f(x<<(0i<<x), 1) // corner cases const M = math.MaxUint f(x<<(M+0), 0) // shift by untyped int representable as uint f(x<<(M+0.), 0) // shift by untyped float representable as uint f(x<<(M+0.+0i), 0) // shift by untyped complex representable as uint
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 07 17:19:55 UTC 2022 - 834 bytes - Viewed (0) -
src/cmd/vet/testdata/shift/shift.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 20 15:46:42 UTC 2019 - 358 bytes - Viewed (0) -
test/ken/shift.go
// run // Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Test shift. package main var ians [18]int; var uans [18]uint; var pass string; func testi(i int, t1,t2,t3 int) { n := ((t1*3) + t2)*2 + t3; if i != ians[n] { print("itest ", t1,t2,t3,pass, " is ", i, " sb ", ians[n], "\n"); } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 24 05:24:24 UTC 2012 - 2.3K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/memcombine.go
} } // Check for reads in little-endian or big-endian order. shift0 := r[0].shift isLittleEndian := true for i := int64(0); i < n; i++ { if r[i].shift != shift0+i*size*8 { isLittleEndian = false break } } isBigEndian := true for i := int64(0); i < n; i++ { if r[i].shift != shift0-i*size*8 { isBigEndian = false break } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 19:45:41 UTC 2024 - 18.4K bytes - Viewed (0) -
test/codegen/bitfield.go
return x<<7 ^ x2>>25 // arm64:"EXTRW\t[$]25," } // check 32-bit shift masking func mask32(x uint32) uint32 { return (x << 29) >> 29 // arm64:"AND\t[$]7, R[0-9]+",-"LSR",-"LSL" } // check 16-bit shift masking func mask16(x uint16) uint16 { return (x << 14) >> 14 // arm64:"AND\t[$]3, R[0-9]+",-"LSR",-"LSL" } // check 8-bit shift masking func mask8(x uint8) uint8 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 23 06:11:32 UTC 2022 - 9.6K bytes - Viewed (0) -
cmd/metacache-entries_test.go
"src/compress/flate/testdata/huffman-rand-max.in", "src/compress/flate/testdata/huffman-shifts.dyn.expect", "src/compress/flate/testdata/huffman-shifts.dyn.expect-noinput", "src/compress/flate/testdata/huffman-shifts.golden", "src/compress/flate/testdata/huffman-shifts.in", "src/compress/flate/testdata/huffman-shifts.wb.expect", "src/compress/flate/testdata/huffman-shifts.wb.expect-noinput", "src/compress/flate/testdata/huffman-text-shift.dyn.expect", "src/compress/flate/testdata/huffman-text-shift.dyn.expect-noinput",...
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sun Jan 02 17:15:06 UTC 2022 - 31.6K bytes - Viewed (0) -
src/compress/flate/testdata/huffman-shifts.in
Klaus Post <******@****.***> 1457448890 +0100
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 11 17:40:52 UTC 2016 - 6.4K bytes - Viewed (0) -
src/compress/flate/testdata/huffman-shifts.golden
Klaus Post <******@****.***> 1457448890 +0100
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 11 17:40:52 UTC 2016 - 1.8K bytes - Viewed (0) -
test/fixedbugs/issue28079c.go
// license that can be found in the LICENSE file. // Non-Go-constant but constant values aren't ok for shifts. package p import "unsafe" func f() { _ = complex(1<<uintptr(unsafe.Pointer(nil)), 0) // ERROR "invalid operation: shifted operand 1 \(type float64\) must be integer|non-integer type for left operand of shift"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 28 22:28:41 UTC 2022 - 451 bytes - Viewed (0) -
src/internal/types/testdata/fixedbugs/issue52031.go
// Example from #52031. // // The following shifts should not produce errors on Go < 1.13, as their // untyped constant operands are representable by type uint. const ( _ resultFlags = (1 << iota) / 2 reportEqual reportUnequal reportByIgnore reportByMethod reportByFunc reportByCycle ) // Invalid cases. var x int = 1 var _ = (8 << x /* ERRORx `signed shift count .* requires go1.13 or later` */)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:27 UTC 2023 - 733 bytes - Viewed (0)