Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 49 for DUP (0.02 sec)

  1. src/crypto/md5/gen.go

    	Shift4     []int
    	Table1     []uint32
    	Table2     []uint32
    	Table3     []uint32
    	Table4     []uint32
    }
    
    var funcs = template.FuncMap{
    	"dup":     dup,
    	"relabel": relabel,
    	"rotate":  rotate,
    	"idx":     idx,
    	"seq":     seq,
    }
    
    func dup(count int, x []int) []int {
    	var out []int
    	for i := 0; i < count; i++ {
    		out = append(out, x...)
    	}
    	return out
    }
    
    func relabel(s string) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  2. src/expvar/expvar.go

    	if _, ok := v.m.Load(key); !ok {
    		if _, dup := v.m.LoadOrStore(key, av); !dup {
    			v.addKey(key)
    			return
    		}
    	}
    
    	v.m.Store(key, av)
    }
    
    // Add adds delta to the *[Int] value stored under the given map key.
    func (v *Map) Add(key string, delta int64) {
    	i, ok := v.m.Load(key)
    	if !ok {
    		var dup bool
    		i, dup = v.m.LoadOrStore(key, new(Int))
    		if !dup {
    			v.addKey(key)
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 21:32:11 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  3. src/image/gif/writer.go

    	// translated such that its top-left corner is (0, 0), so that the single
    	// frame completely fills the overall GIF's bounds.
    	if pm.Rect.Min != (image.Point{}) {
    		dup := *pm
    		dup.Rect = dup.Rect.Sub(dup.Rect.Min)
    		pm = &dup
    	}
    
    	return EncodeAll(w, &GIF{
    		Image: []*image.Paletted{pm},
    		Delay: []int{0},
    		Config: image.Config{
    			ColorModel: pm.Palette,
    			Width:      b.Dx(),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:38:09 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  4. src/vendor/golang.org/x/crypto/sha3/sha3.go

    	if d.state != spongeAbsorbing {
    		panic("sha3: Sum after Read")
    	}
    
    	// Make a copy of the original hash so that caller can keep writing
    	// and summing.
    	dup := d.clone()
    	hash := make([]byte, dup.outputLen, 64) // explicit cap to allow stack allocation
    	dup.Read(hash)
    	return append(in, hash...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/work.txt

    stderr '^go: -mod may only be set to readonly or vendor when in workspace mode'
    env GOWORK=off
    go list -mod=mod all
    env GOWORK=
    
    # Test that duplicates in the use list return an error
    cp go.work go.work.backup
    cp go.work.dup go.work
    ! go run example.com/b
    stderr 'go.work:6: path .* appears multiple times in workspace'
    cp go.work.backup go.work
    
    cp go.work.d go.work
    go work use # update go version
    go run example.com/d
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:36:30 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  6. src/internal/poll/fd_plan9.go

    func (fd *FD) RawWrite(f func(uintptr) bool) error {
    	return errors.New("not implemented")
    }
    
    func DupCloseOnExec(fd int) (int, string, error) {
    	nfd, err := syscall.Dup(int(fd), -1)
    	if err != nil {
    		return 0, "dup", err
    	}
    	// Plan9 has no syscall.CloseOnExec but
    	// its forkAndExecInChild closes all fds
    	// not related to the fork+exec.
    	return nfd, "", nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 14:00:54 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  7. src/internal/poll/fd_wasip1.go

    package poll
    
    import (
    	"internal/byteorder"
    	"sync/atomic"
    	"syscall"
    	"unsafe"
    )
    
    type SysFile struct {
    	// RefCountPtr is a pointer to the reference count of Sysfd.
    	//
    	// WASI preview 1 lacks a dup(2) system call. When the os and net packages
    	// need to share a file/socket, instead of duplicating the underlying file
    	// descriptor, we instead provide a way to copy FD instances and manage the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 20:14:02 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  8. src/internal/trace/mud_test.go

    					t.Errorf("inverse(%g) = %g, not ∈ [%g, %g)", trackMass, inv, l, u)
    				}
    			}
    		}
    	}
    }
    
    // aeq returns true if x and y are equal up to 8 digits (1 part in 100
    // million).
    // TODO(amedee) dup of gc_test.go
    func aeq(x, y float64) bool {
    	if x < 0 && y < 0 {
    		x, y = -x, -y
    	}
    	const digits = 8
    	factor := 1 - math.Pow(10, -digits+1)
    	return x*factor <= y && y*factor <= x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  9. src/runtime/debug/stack.go

    		// to a full pipe buffer don't get lost.
    		fd2, _, err := poll.DupCloseOnExec(int(f.Fd()))
    		if err != nil {
    			return err
    		}
    		runtime.KeepAlive(f) // prevent finalization before dup
    		fd = uintptr(fd2)
    	}
    	if prev := runtime_setCrashFD(fd); prev != ^uintptr(0) {
    		// We use NewFile+Close because it is portable
    		// unlike syscall.Close, whose parameter type varies.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 15:19:04 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  10. src/encoding/gob/type.go

    	// Store the name and type provided by the user....
    	if t, dup := nameToConcreteType.LoadOrStore(name, reflect.TypeOf(value)); dup && t != ut.user {
    		panic(fmt.Sprintf("gob: registering duplicate types for %q: %s != %s", name, t, ut.user))
    	}
    
    	// but the flattened type in the type table, since that's what decode needs.
    	if n, dup := concreteTypeToName.LoadOrStore(ut.base, name); dup && n != name {
    		nameToConcreteType.Delete(name)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 02:00:26 UTC 2024
    - 27.2K bytes
    - Viewed (0)
Back to top