Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 48 for BigEndian (0.28 sec)

  1. src/cmd/compile/internal/ssa/config.go

    		c.FPReg = framepointerRegS390X
    		c.LinkReg = linkRegS390X
    		c.hasGReg = true
    		c.noDuffDevice = true
    		c.BigEndian = true
    		c.unalignedOK = true
    		c.haveBswap64 = true
    		c.haveBswap32 = true
    		c.haveBswap16 = true // only for loads&stores, see ppc64 comment
    	case "mips":
    		c.BigEndian = true
    		fallthrough
    	case "mipsle":
    		c.PtrSize = 4
    		c.RegSize = 4
    		c.lowerBlock = rewriteBlockMIPS
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:11:47 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  2. src/debug/buildinfo/buildinfo.go

    	ptrSize := int(data[14])
    	if data[15]&2 != 0 {
    		vers, data = decodeString(data[32:])
    		mod, data = decodeString(data)
    	} else {
    		bigEndian := data[15] != 0
    		var bo binary.ByteOrder
    		if bigEndian {
    			bo = binary.BigEndian
    		} else {
    			bo = binary.LittleEndian
    		}
    		var readPtr func([]byte) uint64
    		if ptrSize == 4 {
    			readPtr = func(b []byte) uint64 { return uint64(bo.Uint32(b)) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  3. src/syscall/dirent.go

    )
    
    // readInt returns the size-bytes unsigned integer in native byte order at offset off.
    func readInt(b []byte, off, size uintptr) (u uint64, ok bool) {
    	if len(b) < int(off+size) {
    		return 0, false
    	}
    	if goarch.BigEndian {
    		return readIntBE(b[off:], size), true
    	}
    	return readIntLE(b[off:], size), true
    }
    
    func readIntBE(b []byte, size uintptr) uint64 {
    	switch size {
    	case 1:
    		return uint64(b[0])
    	case 2:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 20:13:24 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/memcombine.go

    			break
    		}
    	}
    	if pos == src.NoXPos {
    		return false
    	}
    
    	// Check to see if we need byte swap before storing.
    	needSwap := isLittleEndian && root.Block.Func.Config.BigEndian ||
    		isBigEndian && !root.Block.Func.Config.BigEndian
    	if needSwap && (size != 1 || !root.Block.Func.Config.haveByteSwap(n)) {
    		return false
    	}
    
    	// This is the commit point.
    
    	// First, issue load at lowest address.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 19:45:41 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  5. guava/src/com/google/common/hash/LittleEndianByteArray.java

        UNSAFE_BIG_ENDIAN {
          @Override
          public long getLongLittleEndian(byte[] array, int offset) {
            long bigEndian = theUnsafe.getLong(array, (long) offset + BYTE_ARRAY_BASE_OFFSET);
            // The hardware is big-endian, so we need to reverse the order of the bytes.
            return Long.reverseBytes(bigEndian);
          }
    
          @Override
          public void putLongLittleEndian(byte[] array, int offset, long value) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/text/unicode/norm/forminfo.go

    	recompMap = make(map[uint32]rune, len(recompMapPacked)/8)
    	var buf [8]byte
    	for i := 0; i < len(recompMapPacked); i += 8 {
    		copy(buf[:], recompMapPacked[i:i+8])
    		key := binary.BigEndian.Uint32(buf[:4])
    		val := binary.BigEndian.Uint32(buf[4:])
    		recompMap[key] = rune(val)
    	}
    }
    
    // Recomposition
    // We use 32-bit keys instead of 64-bit for the two codepoint keys.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  7. src/image/png/writer.go

    		e.err = UnsupportedError(name + " chunk is too large: " + strconv.Itoa(len(b)))
    		return
    	}
    	binary.BigEndian.PutUint32(e.header[:4], n)
    	e.header[4] = name[0]
    	e.header[5] = name[1]
    	e.header[6] = name[2]
    	e.header[7] = name[3]
    	crc := crc32.NewIEEE()
    	crc.Write(e.header[4:8])
    	crc.Write(b)
    	binary.BigEndian.PutUint32(e.footer[:4], crc.Sum32())
    
    	_, e.err = e.w.Write(e.header[:8])
    	if e.err != nil {
    		return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 17:08:05 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  8. pkg/proxy/util/nfacct/nfacct_linux.go

    			// unsigned integer (counter.Packets).
    			if err := binary.Read(reader, binary.BigEndian, &counter.Packets); err != nil {
    				return nil, err
    			}
    			attrsProcessed++
    		case attrBytes:
    			// NFACCT_BYTES holds 8 bytes of data, so we directly read the next 8 bytes into a 64-bit
    			// unsigned integer (counter.Bytes).
    			if err := binary.Read(reader, binary.BigEndian, &counter.Bytes); err != nil {
    				return nil, err
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 06:47:50 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/hash/LittleEndianByteArray.java

        UNSAFE_BIG_ENDIAN {
          @Override
          public long getLongLittleEndian(byte[] array, int offset) {
            long bigEndian = theUnsafe.getLong(array, (long) offset + BYTE_ARRAY_BASE_OFFSET);
            // The hardware is big-endian, so we need to reverse the order of the bytes.
            return Long.reverseBytes(bigEndian);
          }
    
          @Override
          public void putLongLittleEndian(byte[] array, int offset, long value) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  10. src/os/dir_unix.go

    // readInt returns the size-bytes unsigned integer in native byte order at offset off.
    func readInt(b []byte, off, size uintptr) (u uint64, ok bool) {
    	if len(b) < int(off+size) {
    		return 0, false
    	}
    	if goarch.BigEndian {
    		return readIntBE(b[off:], size), true
    	}
    	return readIntLE(b[off:], size), true
    }
    
    func readIntBE(b []byte, size uintptr) uint64 {
    	switch size {
    	case 1:
    		return uint64(b[0])
    	case 2:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 20:11:45 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top