Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for isBigEndian (0.14 sec)

  1. src/vendor/golang.org/x/crypto/sha3/xor.go

    func xorIn(d *state, buf []byte) {
    	if cpu.IsBigEndian {
    		for i := 0; len(buf) >= 8; i++ {
    			a := binary.LittleEndian.Uint64(buf)
    			d.a[i] ^= a
    			buf = buf[8:]
    		}
    	} else {
    		ab := (*[25 * 64 / 8]byte)(unsafe.Pointer(&d.a))
    		subtle.XORBytes(ab[:], ab[:], buf)
    	}
    }
    
    // copyOut copies uint64s to a byte buffer.
    func copyOut(d *state, b []byte) {
    	if cpu.IsBigEndian {
    		for i := 0; len(b) >= 8; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 854 bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/memcombine.go

    	for i := int64(0); i < n; i++ {
    		if r[i].shift != shift0+i*size*8 {
    			isLittleEndian = false
    			break
    		}
    	}
    	isBigEndian := true
    	for i := int64(0); i < n; i++ {
    		if r[i].shift != shift0-i*size*8 {
    			isBigEndian = false
    			break
    		}
    	}
    	if !isLittleEndian && !isBigEndian {
    		return false
    	}
    
    	// Find a place to put the new load.
    	// This is tricky, because it has to be at a point where
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 19:45:41 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  3. src/cmd/link/internal/arm64/asm.go

    			if target.IsDarwin() && xadd != 0 {
    				nExtReloc = 4 // need another two relocations for non-zero addend
    			}
    
    			if target.IsWindows() {
    				var o0, o1 uint32
    				if target.IsBigEndian() {
    					o0 = uint32(val >> 32)
    					o1 = uint32(val)
    				} else {
    					o0 = uint32(val)
    					o1 = uint32(val >> 32)
    				}
    
    				// The first instruction (ADRP) has a 21-bit immediate field,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 30 20:09:45 UTC 2024
    - 47K bytes
    - Viewed (0)
  4. src/cmd/link/internal/ppc64/asm.go

    func unpackInstPair(target *ld.Target, r int64) (uint32, uint32) {
    	if target.IsBigEndian() {
    		return uint32(r >> 32), uint32(r)
    	}
    	return uint32(r), uint32(r >> 32)
    }
    
    // Pack a pair of 32 bit instruction words o1, o2 into 64 bit relocation
    // in endian order.
    func packInstPair(target *ld.Target, o1, o2 uint32) int64 {
    	if target.IsBigEndian() {
    		return (int64(o1) << 32) | int64(o2)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 20:54:08 UTC 2024
    - 63.7K bytes
    - Viewed (0)
Back to top