- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 46 for 1E3 (0.09 sec)
-
src/sort/sort_test.go
Stable(data) if !IsSorted(data) { t.Errorf("Stable didn't sort %d ints", n) } if !data.inOrder() { t.Errorf("Stable wasn't stable on %d ints", n) } } var countOpsSizes = []int{1e2, 3e2, 1e3, 3e3, 1e4, 3e4, 1e5, 3e5, 1e6} func countOps(t *testing.T, algo func(Interface), name string) { sizes := countOpsSizes if testing.Short() { sizes = sizes[:5] } if !testing.Verbose() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 19:41:04 UTC 2024 - 16.9K bytes - Viewed (0) -
src/sync/atomic/atomic_test.go
} func TestStoreLoadSeqCst32(t *testing.T) { if runtime.NumCPU() == 1 { t.Skipf("Skipping test on %v processor machine", runtime.NumCPU()) } defer runtime.GOMAXPROCS(runtime.GOMAXPROCS(4)) N := int32(1e3) if testing.Short() { N = int32(1e2) } c := make(chan bool, 2) X := [2]int32{} ack := [2][3]int32{{-1, -1, -1}, {-1, -1, -1}} for p := 0; p < 2; p++ { go func(me int) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:37:29 UTC 2024 - 71.4K bytes - Viewed (0) -
src/math/big/floatconv_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 24.3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/windows/types_windows.go
type Timeval struct { Sec int32 Usec int32 } func (tv *Timeval) Nanoseconds() int64 { return (int64(tv.Sec)*1e6 + int64(tv.Usec)) * 1e3 } func NsecToTimeval(nsec int64) (tv Timeval) { tv.Sec = int32(nsec / 1e9) tv.Usec = int32(nsec % 1e9 / 1e3) return } type Overlapped struct { Internal uintptr InternalHigh uintptr Offset uint32 OffsetHigh uint32
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 05 22:18:42 UTC 2024 - 104.1K bytes - Viewed (0) -
src/strconv/eisel_lemire.go
{0x0000000000000000, 0x8000000000000000}, // 1e0 {0x0000000000000000, 0xA000000000000000}, // 1e1 {0x0000000000000000, 0xC800000000000000}, // 1e2 {0x0000000000000000, 0xFA00000000000000}, // 1e3 {0x0000000000000000, 0x9C40000000000000}, // 1e4 {0x0000000000000000, 0xC350000000000000}, // 1e5 {0x0000000000000000, 0xF424000000000000}, // 1e6 {0x0000000000000000, 0x9896800000000000}, // 1e7
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 41.4K bytes - Viewed (0) -
src/math/big/float_test.go
} } } } } func BenchmarkFloatAdd(b *testing.B) { x := new(Float) y := new(Float) z := new(Float) for _, prec := range []uint{10, 1e2, 1e3, 1e4, 1e5} { x.SetPrec(prec).SetRat(NewRat(1, 3)) y.SetPrec(prec).SetRat(NewRat(1, 6)) z.SetPrec(prec) b.Run(fmt.Sprintf("%v", prec), func(b *testing.B) { b.ReportAllocs()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 11 20:22:45 UTC 2024 - 51.9K bytes - Viewed (0) -
src/runtime/proc_test.go
} } // Start two co-scheduled hog goroutines. for i := 0; i < 2; i++ { go run(1e6, &hogCount, hogChan) } // Start two co-scheduled light goroutines. for i := 0; i < 2; i++ { go run(1e3, &lightCount, lightChan) } // Start goroutine pairs and wait for a few preemption rounds. hogChan <- true lightChan <- true time.Sleep(100 * time.Millisecond) close(done) <-hogChan <-lightChan
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 14 00:03:57 UTC 2023 - 25.8K bytes - Viewed (0) -
src/math/big/int_test.go
t := new(Int) b.ResetTimer() for i := 0; i < b.N; i++ { t.Mul(x, x) } } func BenchmarkIntSqr(b *testing.B) { for _, n := range sqrBenchSizes { if isRaceBuilder && n > 1e3 { continue } b.Run(fmt.Sprintf("%d", n), func(b *testing.B) { benchmarkIntSqr(b, n) }) } } func benchmarkDiv(b *testing.B, aSize, bSize int) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 58.5K bytes - Viewed (0) -
src/time/format.go
utod := func(u uint) byte { return '0' + byte(u) } switch { case width == 2 && u < 1e2: return append(b, utod(u/1e1), utod(u%1e1)) case width == 4 && u < 1e4: return append(b, utod(u/1e3), utod(u/1e2%1e1), utod(u/1e1%1e1), utod(u%1e1)) } // Compute the number of decimal digits. var n int if u == 0 { n = 1 } for u2 := u; u2 > 0; u2 /= 10 { n++ }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 17:09:28 UTC 2024 - 49.3K bytes - Viewed (0) -
src/runtime/mgc.go
if ns >= 10e6 { // Format as whole milliseconds. return itoaDiv(buf, ns/1e6, 0) } // Format two digits of precision, with at most three decimal places. x := ns / 1e3 if x == 0 { buf[0] = '0' return buf[:1] } dec := 3 for x >= 100 { x /= 10 dec-- } return itoaDiv(buf, x, dec) } // Helpers for testing GC.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 62K bytes - Viewed (0)