Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for Odivide (0.2 sec)

  1. doc/go1.17_spec.html

    different kinds, the result is of the operand's kind that appears later in this
    list: integer, rune, floating-point, complex.
    For example, an untyped integer constant divided by an
    untyped complex constant yields an untyped complex constant.
    </p>
    
    <pre>
    const a = 2 + 3.0          // a == 5.0   (untyped floating-point constant)
    HTML
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/asm/parse.go

    func (p *Parser) term() uint64 {
    	value := p.factor()
    	for {
    		switch p.peek() {
    		case '*':
    			p.next()
    			value *= p.factor()
    		case '/':
    			p.next()
    			if int64(value) < 0 {
    				p.errorf("divide of value with high bit set")
    			}
    			divisor := p.factor()
    			if divisor == 0 {
    				p.errorf("division by zero")
    			} else {
    				value /= divisor
    			}
    		case '%':
    			p.next()
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  3. doc/go_spec.html

    different kinds, the result is of the operand's kind that appears later in this
    list: integer, rune, floating-point, complex.
    For example, an untyped integer constant divided by an
    untyped complex constant yields an untyped complex constant.
    </p>
    
    <pre>
    const a = 2 + 3.0          // a == 5.0   (untyped floating-point constant)
    HTML
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 279.3K bytes
    - Viewed (0)
  4. src/cmd/asm/internal/asm/expr_test.go

    	}
    }
    
    type badExprTest struct {
    	input string
    	error string // Empty means no error.
    }
    
    var badExprTests = []badExprTest{
    	{"0/0", "division by zero"},
    	{"3/0", "division by zero"},
    	{"(1<<63)/0", "divide of value with high bit set"},
    	{"3%0", "modulo by zero"},
    	{"(1<<63)%0", "modulo of value with high bit set"},
    	{"3<<-4", "negative left shift count"},
    	{"3<<(1<<63)", "negative left shift count"},
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/asm/testdata/ppc64.s

    	DIVDUV R3, R4, R5               // 7ca41f92
    	DIVDUVCC R3, R4, R5             // 7ca41f93
    	DIVWUVCC R3, R4, R5             // 7ca41f97
    	DIVWUV   R3, R4, R5             // 7ca41f96
    	DIVDE R3, R4, R5                // 7ca41b52
    	DIVDECC R3, R4, R5              // 7ca41b53
    	DIVDEU R3, R4, R5               // 7ca41b12
    	DIVDEUCC R3, R4, R5             // 7ca41b13
    
    Others
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Apr 01 18:50:29 GMT 2024
    - 48.8K bytes
    - Viewed (0)
Back to top