Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for atoi64tests (0.31 sec)

  1. src/runtime/string_test.go

    	switch intSize {
    	case 32:
    		for i := range atoi32tests {
    			test := &atoi32tests[i]
    			out, ok := runtime.Atoi(test.in)
    			if test.out != int32(out) || test.ok != ok {
    				t.Errorf("atoi(%q) = (%v, %v) want (%v, %v)",
    					test.in, out, ok, test.out, test.ok)
    			}
    		}
    	case 64:
    		for i := range atoi64tests {
    			test := &atoi64tests[i]
    			out, ok := runtime.Atoi(test.in)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 13 14:05:23 UTC 2022
    - 13.3K bytes
    - Viewed (0)
  2. src/strconv/itoa_test.go

    }
    
    func BenchmarkFormatInt(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		for _, test := range itob64tests {
    			s := FormatInt(test.in, test.base)
    			BenchSink += len(s)
    		}
    	}
    }
    
    func BenchmarkAppendInt(b *testing.B) {
    	dst := make([]byte, 0, 30)
    	for i := 0; i < b.N; i++ {
    		for _, test := range itob64tests {
    			dst = AppendInt(dst[:0], test.in, test.base)
    			BenchSink += len(dst)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 15 21:09:39 UTC 2022
    - 5.8K bytes
    - Viewed (0)
Back to top