Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for offs2lohi (0.12 sec)

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

    		if len(b) > 0 {
    			v.Base = &b[0]
    		} else {
    			v.Base = (*byte)(unsafe.Pointer(&_zero))
    		}
    		vecs = append(vecs, v)
    	}
    	return vecs
    }
    
    // offs2lohi splits offs into its low and high order bits.
    func offs2lohi(offs int64) (lo, hi uintptr) {
    	const longBits = SizeofLong * 8
    	return uintptr(offs), uintptr(uint64(offs) >> (longBits - 1) >> 1) // two shifts to avoid false positive in vet
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 05:26:45 UTC 2024
    - 77.5K bytes
    - Viewed (0)
Back to top