Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for isPPC64DoublewordRotateMask (0.31 sec)

  1. src/cmd/internal/obj/ppc64/obj9.go

    // li -1, rx; rlic rx,rx,sh,mb.
    // Masks can also extend from the msb and wrap to
    // the lsb too. That is, the valid masks are 32 bit strings
    // of the form: 0..01..10..0 or 1..10..01..1 or 1...1
    func isPPC64DoublewordRotateMask(v64 int64) bool {
    	// Isolate rightmost 1 (if none 0) and add.
    	v := uint64(v64)
    	vp := (v & -v) + v
    	// Likewise, for the wrapping case.
    	vn := ^v
    	vpn := (vn & -vn) + vn
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:17:17 UTC 2024
    - 40.8K bytes
    - Viewed (0)
Back to top