Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 115 for BigEndian (0.14 sec)

  1. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux.go

    	// encoding/binary helpers to write the bytes without worrying
    	// about the ordering.
    	binary.BigEndian.PutUint32(sa.raw[2:6], px_proto_oe)
    	// This field is deliberately big-endian, unlike the previous
    	// one. The kernel expects SID to be in network byte order.
    	binary.BigEndian.PutUint16(sa.raw[6:8], sa.SID)
    	copy(sa.raw[8:14], sa.Remote)
    	for i := 14; i < 14+IFNAMSIZ; i++ {
    		sa.raw[i] = 0
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 05:26:45 UTC 2024
    - 77.5K bytes
    - Viewed (0)
  2. src/debug/dwarf/entry_test.go

    				8, // address size
    				0, 0, 0, 0, 0,
    				0, 0, 0, 0, 0, 0, 0, 0,
    				0, 0, 0, 0, 0, 0, 0, 0,
    				0, 0, 0, 0, 0, 0, 0, 0,
    				0, 0, 0, 0, 0, 0, 0, 0,
    			},
    			8, binary.BigEndian,
    		},
    	}
    
    	for _, test := range tests {
    		data, err := New(nil, nil, nil, test.info, nil, nil, nil, nil)
    		if err != nil {
    			t.Errorf("%s: %v", test.name, err)
    		}
    
    		r := data.Reader()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 18 20:34:36 UTC 2023
    - 16.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/walk/convert.go

    		n = soleComponent(init, n)
    		// byteindex widens n so that the multiplication doesn't overflow.
    		index := ir.NewBinaryExpr(base.Pos, ir.OLSH, byteindex(n), ir.NewInt(base.Pos, 3))
    		if ssagen.Arch.LinkArch.ByteOrder == binary.BigEndian {
    			index = ir.NewBinaryExpr(base.Pos, ir.OADD, index, ir.NewInt(base.Pos, 7))
    		}
    		// The actual type is [256]uint64, but we use [256*8]uint8 so we can address
    		// individual bytes.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 17:28:22 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  4. src/runtime/arena.go

    			zeros -= ptrBits
    		}
    		h.offset += ptrBits * goarch.PtrSize
    	}
    }
    
    // bswapIfBigEndian swaps the byte order of the uintptr on goarch.BigEndian platforms,
    // and leaves it alone elsewhere.
    func bswapIfBigEndian(x uintptr) uintptr {
    	if goarch.BigEndian {
    		if goarch.PtrSize == 8 {
    			return uintptr(sys.Bswap64(uint64(x)))
    		}
    		return uintptr(sys.Bswap32(uint32(x)))
    	}
    	return x
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:44:56 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/rewriteMIPS.go

    	typ := &b.Func.Config.Types
    	// match: (AtomicOr8 ptr val mem)
    	// cond: !config.BigEndian
    	// result: (LoweredAtomicOr (AND <typ.UInt32Ptr> (MOVWconst [^3]) ptr) (SLL <typ.UInt32> (ZeroExt8to32 val) (SLLconst <typ.UInt32> [3] (ANDconst <typ.UInt32> [3] ptr))) mem)
    	for {
    		ptr := v_0
    		val := v_1
    		mem := v_2
    		if !(!config.BigEndian) {
    			break
    		}
    		v.reset(OpMIPSLoweredAtomicOr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 14:43:03 UTC 2023
    - 176.6K bytes
    - Viewed (0)
  6. src/cmd/vendor/github.com/google/pprof/internal/binutils/binutils.go

    		}
    		return f, nil
    	}
    
    	// Mach-O magic numbers can be big or little endian.
    	machoMagicLittle := binary.LittleEndian.Uint32(header[:])
    	machoMagicBig := binary.BigEndian.Uint32(header[:])
    
    	if machoMagicLittle == macho.Magic32 || machoMagicLittle == macho.Magic64 ||
    		machoMagicBig == macho.Magic32 || machoMagicBig == macho.Magic64 {
    		f, err := b.openMachO(name, start, limit, offset)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  7. src/encoding/gob/encode.go

    // encodeUint writes an encoded unsigned integer to state.b.
    func (state *encoderState) encodeUint(x uint64) {
    	if x <= 0x7F {
    		state.b.writeByte(uint8(x))
    		return
    	}
    
    	binary.BigEndian.PutUint64(state.buf[1:], x)
    	bc := bits.LeadingZeros64(x) >> 3      // 8 - bytelen(x)
    	state.buf[bc] = uint8(bc - uint64Size) // and then we subtract 8 to get -bytelen(x)
    
    	state.b.Write(state.buf[bc : uint64Size+1])
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 02:00:26 UTC 2024
    - 19K bytes
    - Viewed (0)
  8. internal/grid/connection.go

    	case f.Header.Length <= len7:
    		bts[1] = byte(f.Header.Length)
    		n = 2
    
    	case f.Header.Length <= len16:
    		bts[1] = 126
    		binary.BigEndian.PutUint16(bts[2:4], uint16(f.Header.Length))
    		n = 4
    
    	case f.Header.Length <= len64:
    		bts[1] = 127
    		binary.BigEndian.PutUint64(bts[2:10], uint64(f.Header.Length))
    		n = 10
    
    	default:
    		return ws.ErrHeaderLengthUnexpected
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 44.8K bytes
    - Viewed (0)
  9. cmd/xl-storage-format-v2.go

    		dst = msgp.AppendBytes(dst, ver.meta)
    	}
    
    	// Update size...
    	binary.BigEndian.PutUint32(dst[dataOffset-4:dataOffset], uint32(len(dst)-dataOffset))
    
    	// Add CRC of metadata as fixed size (5 bytes)
    	// Prior to v1.3 this was variable sized.
    	tmp = tmp[:5]
    	tmp[0] = 0xce // muint32
    	binary.BigEndian.PutUint32(tmp[1:], uint32(xxhash.Sum64(dst[dataOffset:])))
    	dst = append(dst, tmp[:5]...)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 29 19:14:09 UTC 2024
    - 63.6K bytes
    - Viewed (0)
  10. src/cmd/link/internal/ld/elf.go

    		elfRelType = ".rela"
    	} else {
    		elfRelType = ".rel"
    	}
    
    	switch ctxt.Arch.Family {
    	// 64-bit architectures
    	case sys.PPC64, sys.S390X:
    		if ctxt.Arch.ByteOrder == binary.BigEndian && ctxt.HeadType != objabi.Hopenbsd {
    			ehdr.Flags = 1 /* Version 1 ABI */
    		} else {
    			ehdr.Flags = 2 /* Version 2 ABI */
    		}
    		fallthrough
    	case sys.AMD64, sys.ARM64, sys.Loong64, sys.MIPS64, sys.RISCV64:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 13:29:54 UTC 2024
    - 63.6K bytes
    - Viewed (0)
Back to top