- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 46 for 1E3 (0.05 sec)
-
src/internal/types/testdata/spec/range_int.go
for i := range 'a' { var _ *rune = &i // ensure i has type rune } } func issue66561() { for range 10.0 /* ERROR "cannot range over 10.0 (untyped float constant 10)" */ { } for range 1e3 /* ERROR "cannot range over 1e3 (untyped float constant 1000)" */ { } for range 1 /* ERROR "cannot range over 1 + 0i (untyped complex constant (1 + 0i))" */ + 0i { }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 18:56:00 UTC 2024 - 4.7K bytes - Viewed (0) -
src/math/big/arith_test.go
func rndV(n int) []Word { v := make([]Word, n) for i := range v { v[i] = rndW() } return v } var benchSizes = []int{1, 2, 3, 4, 5, 1e1, 1e2, 1e3, 1e4, 1e5} func BenchmarkAddVV(b *testing.B) { for _, n := range benchSizes { if isRaceBuilder && n > 1e3 { continue } x := rndV(n) y := rndV(n) z := make([]Word, n) b.Run(fmt.Sprint(n), func(b *testing.B) { b.SetBytes(int64(n * _W))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 02 14:43:52 UTC 2022 - 19.9K bytes - Viewed (0) -
src/text/template/parse/lex_test.go
{"numbers", "{{1 02 0x14 0X14 -7.2i 1e3 1E3 +1.2e-4 4.2i 1+2i 1_2 0x1.e_fp4 0X1.E_FP4}}", []item{ tLeft, mkItem(itemNumber, "1"), tSpace, mkItem(itemNumber, "02"), tSpace, mkItem(itemNumber, "0x14"), tSpace, mkItem(itemNumber, "0X14"), tSpace, mkItem(itemNumber, "-7.2i"), tSpace, mkItem(itemNumber, "1e3"), tSpace, mkItem(itemNumber, "1E3"), tSpace,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 23 15:03:43 UTC 2022 - 13.9K bytes - Viewed (0) -
src/syscall/timestruct.go
func TimevalToNsec(tv Timeval) int64 { return tv.Nano() } // NsecToTimeval converts a number of nanoseconds into a [Timeval]. func NsecToTimeval(nsec int64) Timeval { nsec += 999 // round up to microsecond usec := nsec % 1e9 / 1e3 sec := nsec / 1e9 if usec < 0 { usec += 1e6 sec-- } return setTimeval(sec, usec)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:03:59 UTC 2024 - 958 bytes - Viewed (0) -
src/syscall/syscall_wasip1.go
type Timeval struct { Sec int64 Usec int64 } func (tv *Timeval) timestamp() timestamp { return timestamp(tv.Sec*1e9) + timestamp(tv.Usec*1e3) } func (tv *Timeval) setTimestamp(t timestamp) { tv.Sec = int64(t / 1e9) tv.Usec = int64((t % 1e9) / 1e3) } func setTimespec(sec, nsec int64) Timespec { return Timespec{Sec: sec, Nsec: nsec} } func setTimeval(sec, usec int64) Timeval {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:03:59 UTC 2024 - 9.4K bytes - Viewed (0) -
src/internal/trace/testdata/testprog/futile-wakeup.go
c0 := make(chan int, 1) c1 := make(chan int, 1) c2 := make(chan int, 1) const procs = 2 var done sync.WaitGroup done.Add(4 * procs) for p := 0; p < procs; p++ { const iters = 1e3 go func() { trace.WithRegion(context.Background(), "special", func() { for i := 0; i < iters; i++ { runtime.Gosched() c0 <- 0 } done.Done() }) }() go func() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 1.8K bytes - Viewed (0) -
src/runtime/os_wasip1.go
eventtype := in.u.eventtype() *eventtype = eventtypeClock subscription := in.u.subscriptionClock() subscription.id = clockMonotonic subscription.timeout = timestamp(usec) * 1e3 subscription.precision = 1e3 if poll_oneoff(unsafe.Pointer(&in), unsafe.Pointer(&out), 1, unsafe.Pointer(&nevents)) != 0 { throw("wasi_snapshot_preview1.poll_oneoff") } } func readRandom(r []byte) int {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 20:34:30 UTC 2023 - 7K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/timestruct.go
func TimevalToNsec(tv Timeval) int64 { return tv.Nano() } // NsecToTimeval converts a number of nanoseconds into a Timeval. func NsecToTimeval(nsec int64) Timeval { nsec += 999 // round up to microsecond usec := nsec % 1e9 / 1e3 sec := nsec / 1e9 if usec < 0 { usec += 1e6 sec-- } return setTimeval(sec, usec) } // Unix returns the time stored in ts as seconds plus nanoseconds.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 2.2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/json/json_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jul 28 08:02:09 UTC 2022 - 9.3K bytes - Viewed (0) -
src/math/big/ratconv_test.go
if f.Sign() > 0 { f.Neg(&f) fdec = "-" + fdec } } } } func BenchmarkFloatPrecExact(b *testing.B) { for _, n := range []int{1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6} { // d := 5^n d := NewInt(5) p := NewInt(int64(n)) d.Exp(d, p, nil) // r := 1/d var r Rat r.SetFrac(NewInt(1), d) b.Run(fmt.Sprint(n), func(b *testing.B) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 15 22:16:34 UTC 2023 - 19.3K bytes - Viewed (0)