Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for parseScale (0.13 sec)

  1. src/cmd/asm/internal/asm/parse.go

    func (p *Parser) address(operand []lex.Token) obj.Addr {
    	p.start(operand)
    	addr := obj.Addr{}
    	p.operand(&addr)
    	return addr
    }
    
    // parseScale converts a decimal string into a valid scale factor.
    func (p *Parser) parseScale(s string) int8 {
    	switch s {
    	case "1", "2", "4", "8":
    		return int8(s[0] - '0')
    	}
    	p.errorf("bad scale: %s", s)
    	return 0
    }
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Sep 04 18:16:59 UTC 2024
    - 36.9K bytes
    - Viewed (0)
Back to top