Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for div6_uint8 (0.14 sec)

  1. src/cmd/compile/internal/test/testdata/arith_test.go

    			if want, got := uint8(i)%uint8(sixU) == 0, div6_uint8(uint8(i)); got != want {
    				t.Errorf("div6_uint8(%d) = %v want %v", i, got, want)
    			}
    			if want, got := uint8(i)%uint8(nineteenU) == 0, div19_uint8(uint8(i)); got != want {
    				t.Errorf("div6_uint19(%d) = %v want %v", i, got, want)
    			}
    		}
    		if want, got := uint16(i)%uint16(sixU) == 0, div6_uint16(uint16(i)); got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 01 19:30:59 UTC 2023
    - 43.5K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/test/testdata/arithBoundary_test.go

    		}
    		if got := sub_uint8_ssa(v.a, v.b); got != v.sub {
    			t.Errorf("sub_uint8 %d-%d = %d, wanted %d\n", v.a, v.b, got, v.sub)
    		}
    		if v.b != 0 {
    			if got := div_uint8_ssa(v.a, v.b); got != v.div {
    				t.Errorf("div_uint8 %d/%d = %d, wanted %d\n", v.a, v.b, got, v.div)
    			}
    
    		}
    		if v.b != 0 {
    			if got := mod_uint8_ssa(v.a, v.b); got != v.mod {
    				t.Errorf("mod_uint8 %d%%%d = %d, wanted %d\n", v.a, v.b, got, v.mod)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:40:04 UTC 2020
    - 31.3K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/test/testdata/arithConst_test.go

    	test_uint8{fn: div_0_uint8, fnname: "div_0_uint8", in: 1, want: 0},
    	test_uint8{fn: div_0_uint8, fnname: "div_0_uint8", in: 255, want: 0},
    	test_uint8{fn: div_uint8_1, fnname: "div_uint8_1", in: 0, want: 0},
    	test_uint8{fn: div_1_uint8, fnname: "div_1_uint8", in: 1, want: 1},
    	test_uint8{fn: div_uint8_1, fnname: "div_uint8_1", in: 1, want: 1},
    	test_uint8{fn: div_1_uint8, fnname: "div_1_uint8", in: 255, want: 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:40:04 UTC 2020
    - 633.8K bytes
    - Viewed (0)
Back to top