Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ReverseComparison (0.17 sec)

  1. src/cmd/internal/obj/s390x/condition_code.go

    )
    
    // Inverse returns the complement of the condition code mask.
    func (c CCMask) Inverse() CCMask {
    	return c ^ Always
    }
    
    // ReverseComparison swaps the bits at 0b0100 and 0b0010 in the mask,
    // reversing the behavior of greater than and less than conditions.
    func (c CCMask) ReverseComparison() CCMask {
    	r := c & EqualOrUnordered
    	if c&Less != 0 {
    		r |= Greater
    	}
    	if c&Greater != 0 {
    		r |= Less
    	}
    	return r
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 08 01:46:31 UTC 2020
    - 3.2K bytes
    - Viewed (0)
Back to top