Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for isConstDelta (0.18 sec)

  1. src/cmd/compile/internal/ssa/prove.go

    		v, w = w, v
    		r = reverseBits[r]
    	}
    	switch r {
    	case gt:
    		if x, delta := isConstDelta(v); x != nil && delta == 1 {
    			// x+1 > w  ⇒  x >= w
    			//
    			// This is useful for eliminating the
    			// growslice branch of append.
    			ft.update(parent, x, w, d, gt|eq)
    		} else if x, delta := isConstDelta(w); x != nil && delta == -1 {
    			// v > x-1  ⇒  v >= x
    			ft.update(parent, v, x, d, gt|eq)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:30:21 UTC 2024
    - 48.9K bytes
    - Viewed (0)
Back to top