Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 642 for itor (0.04 sec)

  1. test/chan/powser2.go

    		a[2] = i2tor(3, 2)
    		a[3] = i2tor(13, 6)
    		a[4] = i2tor(73, 24)
    		a[5] = i2tor(167, 40)
    		a[6] = i2tor(4051, 720)
    		a[7] = i2tor(37633, 5040)
    		a[8] = i2tor(43817, 4480)
    		a[9] = i2tor(4596553, 362880)
    		checka(e, a, "Exp") // 1 1 3/2 13/6 73/24
    		at := Integ(zero, MonSubst(Ones, neg(one), 2))
    		for c, i := 1, 0; i < N; i++ {
    			if i%2 == 0 {
    				a[i] = zero
    			} else {
    				a[i] = i2tor(int64(c), int64(i))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 25 22:22:20 UTC 2020
    - 13.3K bytes
    - Viewed (0)
  2. test/complit.go

    	if s != "hello" {
    		panic("s")
    	}
    
    	m := map[string]float64{"one": 1.0, "two": 2.0, "pi": 22. / 7.}
    	if len(m) != 3 {
    		panic("m")
    	}
    
    	eq([]*R{itor(0), itor(1), itor(2), itor(3), itor(4), itor(5)})
    	eq([]*R{{0}, {1}, {2}, {3}, {4}, {5}})
    
    	p1 := NewP(1, 2)
    	p2 := NewP(1, 2)
    	if p1 == p2 {
    		panic("NewP")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 02:19:43 UTC 2012
    - 1.7K bytes
    - Viewed (0)
  3. test/chan/powser1.go

    		a[2] = i2tor(3, 2)
    		a[3] = i2tor(13, 6)
    		a[4] = i2tor(73, 24)
    		a[5] = i2tor(167, 40)
    		a[6] = i2tor(4051, 720)
    		a[7] = i2tor(37633, 5040)
    		a[8] = i2tor(43817, 4480)
    		a[9] = i2tor(4596553, 362880)
    		checka(e, a, "Exp") // 1 1 3/2 13/6 73/24
    		at := Integ(zero, MonSubst(Ones, neg(one), 2))
    		for c, i := 1, 0; i < N; i++ {
    			if i%2 == 0 {
    				a[i] = zero
    			} else {
    				a[i] = i2tor(int64(c), int64(i))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 25 22:22:20 UTC 2020
    - 12.7K bytes
    - Viewed (0)
  4. test/abi/idata.go

    func newFloat() *big.Float { return new(big.Float).SetPrec(prec) }
    
    //go:noinline
    //go:registerparams
    func itor(x intVal) ratVal       { return ratVal{nil} }
    
    //go:noinline
    //go:registerparams
    func itof(x intVal) floatVal     { return floatVal{nil} }
    func rtof(x ratVal) floatVal     { return floatVal{newFloat().SetRat(x.val)} }
    
    type Value interface {
    	String() string
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 05 20:11:08 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  5. src/go/constant/value.go

    func i64tor(x int64Val) ratVal   { return ratVal{newRat().SetInt64(int64(x))} }
    func i64tof(x int64Val) floatVal { return floatVal{newFloat().SetInt64(int64(x))} }
    func itor(x intVal) ratVal       { return ratVal{newRat().SetInt(x.val)} }
    func itof(x intVal) floatVal     { return floatVal{newFloat().SetInt(x.val)} }
    func rtof(x ratVal) floatVal     { return floatVal{newFloat().SetRat(x.val)} }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 34K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/text/unicode/norm/iter.go

    // and return that.
    func (i *Iter) returnSlice(a, b int) []byte {
    	if i.rb.src.bytes == nil {
    		return i.buf[:copy(i.buf[:], i.rb.src.str[a:b])]
    	}
    	return i.rb.src.bytes[a:b]
    }
    
    // Pos returns the byte position at which the next call to Next will commence processing.
    func (i *Iter) Pos() int {
    	return i.p
    }
    
    func (i *Iter) setDone() {
    	i.next = nextDone
    	i.p = i.rb.nsrc
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 11K bytes
    - Viewed (0)
  7. src/internal/itoa/itoa.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Simple conversions to avoid depending on strconv.
    
    package itoa
    
    // Itoa converts val to a decimal string.
    func Itoa(val int) string {
    	if val < 0 {
    		return "-" + Uitoa(uint(-val))
    	}
    	return Uitoa(uint(val))
    }
    
    // Uitoa converts val to a decimal string.
    func Uitoa(val uint) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 11 02:53:50 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  8. src/maps/iter.go

    // license that can be found in the LICENSE file.
    
    package maps
    
    import "iter"
    
    // All returns an iterator over key-value pairs from m.
    // The iteration order is not specified and is not guaranteed
    // to be the same from one call to the next.
    func All[Map ~map[K]V, K comparable, V any](m Map) iter.Seq2[K, V] {
    	return func(yield func(K, V) bool) {
    		for k, v := range m {
    			if !yield(k, v) {
    				return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 13:41:45 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  9. src/reflect/iter.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package reflect
    
    import "iter"
    
    func rangeNum[T int8 | int16 | int32 | int64 | int |
    	uint8 | uint16 | uint32 | uint64 | uint |
    	uintptr, N int64 | uint64](v N) iter.Seq[Value] {
    	return func(yield func(v Value) bool) {
    		// cannot use range T(v) because no core type.
    		for i := T(0); i < T(v); i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 13:40:11 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  10. src/slices/iter.go

    // license that can be found in the LICENSE file.
    
    package slices
    
    import (
    	"cmp"
    	"iter"
    )
    
    // All returns an iterator over index-value pairs in the slice.
    // The indexes range in the usual order, from 0 through len(s)-1.
    func All[Slice ~[]E, E any](s Slice) iter.Seq2[int, E] {
    	return func(yield func(int, E) bool) {
    		for i, v := range s {
    			if !yield(i, v) {
    				return
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:40:32 UTC 2024
    - 2.9K bytes
    - Viewed (0)
Back to top