- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 232 for Shift1 (0.28 sec)
-
src/encoding/asn1/asn1.go
// slice may share memory with the BitString. func (b BitString) RightAlign() []byte { shift := uint(8 - (b.BitLength % 8)) if shift == 8 || len(b.Bytes) == 0 { return b.Bytes } a := make([]byte, len(b.Bytes)) a[0] = b.Bytes[0] >> shift for i := 1; i < len(b.Bytes); i++ { a[i] = b.Bytes[i-1] << (8 - shift) a[i] |= b.Bytes[i] >> shift } return a }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 19:04:28 UTC 2023 - 31.8K bytes - Viewed (0) -
src/internal/types/testdata/check/builtins0.go
var a []complex64 _ = imag(a... /* ERROR "invalid use of ..." */ ) // if argument is untyped, result is untyped const _ byte = imag(1.2 + 3i) const _ complex128 = imag(1.2 + 3i) // lhs constant shift operands are typed as complex128 var s uint _ = imag(1 /* ERROR "must be integer" */ << s) } func imag2() { f1 := func() (x complex128) { return } f2 := func() (x, y complex128) { return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 29.3K bytes - Viewed (0) -
src/go/constant/value.go
func quo(x, y Value) Value { return BinaryOp(x, token.QUO, y) } // Shift returns the result of the shift expression x op s // with op == [token.SHL] or [token.SHR] (<< or >>). x must be // an [Int] or an [Unknown]. If x is [Unknown], the result is x. func Shift(x Value, op token.Token, s uint) Value { switch x := x.(type) { case unknownVal: return x case int64Val:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 34K bytes - Viewed (0) -
src/cmd/compile/internal/types2/builtins.go
// floating-point numbers if possible, // 2) if one of them is not constant (possible because // it contains a shift that is yet untyped), convert // both of them to float64 since they must have the // same type to succeed (this will result in an error // because shifts of floats are not permitted) if x.mode == constant_ && y.mode == constant_ { toFloat := func(x *operand) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 27.1K bytes - Viewed (0) -
src/runtime/panic.go
// uses unsafe.Pointer for speed. func readvarintUnsafe(fd unsafe.Pointer) (uint32, unsafe.Pointer) { var r uint32 var shift int for { b := *(*uint8)(fd) fd = add(fd, unsafe.Sizeof(b)) if b < 128 { return r + uint32(b)<<shift, fd } r += uint32(b&0x7F) << (shift & 31) shift += 7 if shift > 28 { panic("Bad varint") } } } // A PanicNilError happens when code calls panic(nil). //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 43.8K bytes - Viewed (0) -
src/math/big/float.go
// TODO(gri) having a combined add-and-shift primitive // could make this code significantly faster switch { case ex < ey: if al { t := nat(nil).shl(y.mant, uint(ey-ex)) z.mant = z.mant.add(x.mant, t) } else { z.mant = z.mant.shl(y.mant, uint(ey-ex)) z.mant = z.mant.add(x.mant, z.mant) } default: // ex == ey, no shift needed z.mant = z.mant.add(x.mant, y.mant)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 15:46:54 UTC 2024 - 44.5K bytes - Viewed (0) -
src/math/big/arith_arm64.s
copy: MOVD ZR, c+56(FP) CMP R1, R3 BEQ done copy_4: // no carry flag, copy the rest vwOneIterCopy(R0, done) B copy_4 // func shlVU(z, x []Word, s uint) (c Word) // This implementation handles the shift operation from the high word to the low word, // which may be an error for the case where the low word of x overlaps with the high // word of z. When calling this function directly, you need to pay attention to this // situation.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:27 UTC 2023 - 11.8K bytes - Viewed (0) -
src/cmd/asm/internal/asm/operand_test.go
{"$1000000000", "$1000000000"}, {"$__tsan_func_enter(SB)", "$__tsan_func_enter(SB)"}, {"$main(SB)", "$main(SB)"}, {"$masks<>(SB)", "$masks<>(SB)"}, {"$setg_gcc<>(SB)", "$setg_gcc<>(SB)"}, {"$shifts<>(SB)", "$shifts<>(SB)"}, {"$~(1<<63)", "$9223372036854775807"}, {"$~0x3F", "$-64"}, {"$~15", "$-16"}, {"(((8)&0xf)*4)(SP)", "32(SP)"}, {"(((8-14)&0xf)*4)(SP)", "40(SP)"}, {"(6+8)(AX)", "14(AX)"},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 29 18:31:05 UTC 2023 - 23.9K bytes - Viewed (0) -
src/cmd/internal/obj/link.go
// Encoding: // type = TYPE_TEXTSIZE // offset = x // val = int32(y) // // reg<<shift, reg>>shift, reg->shift, reg@>shift // Shifted register value, for ARM and ARM64. // In this form, reg must be a register and shift can be a register or an integer constant. // Encoding: // type = TYPE_SHIFT // On ARM: // offset = (reg&15) | shifttype<<5 | count
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 33.1K bytes - Viewed (0) -
doc/asm.html
<code>R0->16</code> <br> <code>R0>>16</code> <br> <code>R0<<16</code> <br> <code>R0@>16</code>: For <code><<</code>, left shift <code>R0</code> by 16 bits. The other codes are <code>-></code> (arithmetic right shift), <code>>></code> (logical right shift), and <code>@></code> (rotate right). </li> <li> <code>R0->R1</code> <br> <code>R0>>R1</code> <br>
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 28 19:15:27 UTC 2023 - 36.3K bytes - Viewed (1)