Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for hostByteOrder (0.17 sec)

  1. src/vendor/golang.org/x/sys/cpu/byteorder.go

    	return uint64(b[7]) | uint64(b[6])<<8 | uint64(b[5])<<16 | uint64(b[4])<<24 |
    		uint64(b[3])<<32 | uint64(b[2])<<40 | uint64(b[1])<<48 | uint64(b[0])<<56
    }
    
    // hostByteOrder returns littleEndian on little-endian machines and
    // bigEndian on big-endian machines.
    func hostByteOrder() byteOrder {
    	switch runtime.GOARCH {
    	case "386", "amd64", "amd64p32",
    		"alpha",
    		"arm", "arm64",
    		"loong64",
    		"mipsle", "mips64le", "mips64p32le",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 03 19:48:07 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  2. src/vendor/golang.org/x/sys/cpu/hwcap_linux.go

    		// ignore the error and leave Initialized = false. On some
    		// architectures (e.g. arm64) doinit() implements a fallback
    		// readout and will set Initialized = true again.
    		return err
    	}
    	bo := hostByteOrder()
    	for len(buf) >= 2*(uintSize/8) {
    		var tag, val uint
    		switch uintSize {
    		case 32:
    			tag = uint(bo.Uint32(buf[0:]))
    			val = uint(bo.Uint32(buf[4:]))
    			buf = buf[8:]
    		case 64:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 10 16:32:44 UTC 2023
    - 1.5K bytes
    - Viewed (0)
Back to top