Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for AuxUnsigned (0.1 sec)

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

    		v.Fatalf("op %s doesn't have an int32 aux field", v.Op)
    	}
    	return int32(v.AuxInt)
    }
    
    // AuxUnsigned returns v.AuxInt as an unsigned value for OpConst*.
    // v.AuxInt is always sign-extended to 64 bits, even if the
    // represented value is unsigned. This undoes that sign extension.
    func (v *Value) AuxUnsigned() uint64 {
    	c := v.AuxInt
    	switch v.Op {
    	case OpConst64:
    		return uint64(c)
    	case OpConst32:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:40:22 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/poset.go

    	}
    
    	// If the same constant is already present in the poset through a different
    	// Value, just alias to it without allocating a new node.
    	val := n.AuxInt
    	if po.flags&posetFlagUnsigned != 0 {
    		val = int64(n.AuxUnsigned())
    	}
    	if c, found := po.constants[val]; found {
    		po.values[n.ID] = c
    		po.upushalias(n.ID, 0)
    		return
    	}
    
    	// Create the new node for this constant
    	i := po.newnode(n)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 04 17:23:05 UTC 2023
    - 37.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/prove.go

    				switch d {
    				case signed:
    					old.min, old.max = v.AuxInt, v.AuxInt
    					if v.AuxInt >= 0 {
    						old.umin, old.umax = uint64(v.AuxInt), uint64(v.AuxInt)
    					}
    				case unsigned:
    					old.umin = v.AuxUnsigned()
    					old.umax = old.umin
    					if int64(old.umin) >= 0 {
    						old.min, old.max = int64(old.umin), int64(old.umin)
    					}
    				}
    			}
    		}
    		lim := noLimit
    		switch d {
    		case signed:
    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