Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 115 for BigEndian (0.5 sec)

  1. src/vendor/golang.org/x/net/lif/sys.go

    package lif
    
    import "unsafe"
    
    var nativeEndian binaryByteOrder
    
    func init() {
    	i := uint32(1)
    	b := (*[4]byte)(unsafe.Pointer(&i))
    	if b[0] == 1 {
    		nativeEndian = littleEndian
    	} else {
    		nativeEndian = bigEndian
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 399 bytes
    - Viewed (0)
  2. src/debug/gosym/pclntab.go

    		t.binary, possibleVersion = binary.BigEndian, ver116
    	case leMagic == go118magic:
    		t.binary, possibleVersion = binary.LittleEndian, ver118
    	case beMagic == go118magic:
    		t.binary, possibleVersion = binary.BigEndian, ver118
    	case leMagic == go120magic:
    		t.binary, possibleVersion = binary.LittleEndian, ver120
    	case beMagic == go120magic:
    		t.binary, possibleVersion = binary.BigEndian, ver120
    	default:
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 25 19:43:24 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/ar.go

    	if _, err := io.ReadFull(f, contents); err != nil {
    		Exitf("short read from %s", filename)
    	}
    
    	var c uint64
    	if is64 {
    		c = binary.BigEndian.Uint64(contents)
    	} else {
    		c = uint64(binary.BigEndian.Uint32(contents))
    	}
    	contents = contents[wordSize:]
    
    	ret := make(archiveMap)
    
    	names := contents[c*uint64(wordSize):]
    	for i := uint64(0); i < c; i++ {
    		n := 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 19 23:11:11 UTC 2022
    - 7.2K bytes
    - Viewed (0)
  4. src/runtime/time_test.go

    		}
    		const magic = "\x00\x00PB"
    		if string(x[:len(magic)]) != magic {
    			return nil, errors.New("bad magic")
    		}
    		x = x[len(magic):]
    		time := binary.BigEndian.Uint64(x)
    		x = x[8:]
    		dlen := binary.BigEndian.Uint32(x)
    		x = x[4:]
    		data := string(x[:dlen])
    		x = x[dlen:]
    		frames = append(frames, fakeTimeFrame{time, data})
    	}
    	return frames, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 03:40:04 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. src/cmd/compile/internal/test/memcombine_test.go

    	return y
    }
    
    func readUint16be(b []byte) uint64 {
    	y := uint64(binary.BigEndian.Uint16(b))
    	nop() // force spill
    	return y
    }
    
    func readUint32le(b []byte) uint64 {
    	y := uint64(binary.LittleEndian.Uint32(b))
    	nop() // force spill
    	return y
    }
    
    func readUint32be(b []byte) uint64 {
    	y := uint64(binary.BigEndian.Uint32(b))
    	nop() // force spill
    	return y
    }
    
    //go:noinline
    func nop() {
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 30 18:35:50 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/hash/HashTestUtils.java

        ByteBuffer littleEndian = ByteBuffer.wrap(bytes).order(ByteOrder.LITTLE_ENDIAN);
        ByteBuffer bigEndian = ByteBuffer.wrap(bytes).order(ByteOrder.BIG_ENDIAN);
        assertEquals(hashFunction.hashBytes(littleEndian), hashFunction.hashBytes(bigEndian));
        assertEquals(ByteOrder.LITTLE_ENDIAN, littleEndian.order());
        assertEquals(ByteOrder.BIG_ENDIAN, bigEndian.order());
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 25.3K bytes
    - Viewed (0)
  10. 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)
Back to top