Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for RotateParams (0.2 sec)

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

    	tests := []struct {
    		// inputs
    		src  RotateParams
    		mask uint64
    
    		// results
    		in  *RotateParams
    		out *RotateParams
    	}{
    		{
    			src:  RotateParams{Start: 48, End: 15, Amount: 16},
    			mask: 0xffffffffffffffff,
    			in:   &RotateParams{Start: 48, End: 15, Amount: 16},
    			out:  &RotateParams{Start: 48, End: 15, Amount: 16},
    		},
    		{
    			src:  RotateParams{Start: 16, End: 47, Amount: 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 14 17:17:59 UTC 2020
    - 3.6K bytes
    - Viewed (0)
  2. src/cmd/internal/obj/s390x/rotate.go

    // increased by the given value. The selected bits are left unchanged.
    func (r RotateParams) RotateLeft(amount uint8) RotateParams {
    	r.Amount += amount
    	r.Amount &= 63
    	return r
    }
    
    // OutMask provides a mask representing the selected bits.
    func (r RotateParams) OutMask() uint64 {
    	// Note: z must be unsigned for bootstrap compiler
    	z := uint8(63-r.End+r.Start) & 63 // number of zero bits in mask
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 21 19:19:04 UTC 2020
    - 3.6K bytes
    - Viewed (0)
Back to top