Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for CalcSize (0.18 sec)

  1. src/regexp/syntax/parse.go

    	case OpCapture, OpStar:
    		// star can be 1+ or 2+; assume 2 pessimistically
    		size = 2 + p.calcSize(re.Sub[0], false)
    	case OpPlus, OpQuest:
    		size = 1 + p.calcSize(re.Sub[0], false)
    	case OpConcat:
    		for _, sub := range re.Sub {
    			size += p.calcSize(sub, false)
    		}
    	case OpAlternate:
    		for _, sub := range re.Sub {
    			size += p.calcSize(sub, false)
    		}
    		if len(re.Sub) > 1 {
    			size += int64(len(re.Sub)) - 1
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 13:59:01 UTC 2024
    - 52.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types/type.go

    }
    
    func (t *Type) Size() int64 {
    	if t.kind == TSSA {
    		if t == TypeInt128 {
    			return 16
    		}
    		return 0
    	}
    	CalcSize(t)
    	return t.width
    }
    
    func (t *Type) Alignment() int64 {
    	CalcSize(t)
    	return int64(t.align)
    }
    
    func (t *Type) SimpleString() string {
    	return t.kind.String()
    }
    
    // Cmp is a comparison between values a and b.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
Back to top