Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 567 for Implementation (0.13 sec)

  1. src/math/big/arith_s390x.s

    // point to same memory region, we can use a faster version of copy using only MVC here.
    // In the following implementation, we have three copy loops, each copying a word, 4 words, and
    // 32 words at a time.  Via benchmarking, this implementation is faster than calling runtime·memmove.
    copySetup:
    	ADD R12, R6
    	ADD R12, R8
    
    	CMPBGE R5, $4, mediumLoop
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 20.3K bytes
    - Viewed (0)
  2. src/slices/zsortordered.go

    // The algorithm based on pattern-defeating quicksort(pdqsort), but without the optimizations from BlockQuicksort.
    // pdqsort paper: https://arxiv.org/pdf/2106.05123.pdf
    // C++ implementation: https://github.com/orlp/pdqsort
    // Rust implementation: https://docs.rs/pdqsort/latest/pdqsort/
    // limit is the number of allowed bad (very unbalanced) pivots before falling back to heapsort.
    func pdqsortOrdered[E cmp.Ordered](data []E, a, b, limit int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 23:33:29 UTC 2023
    - 12.4K bytes
    - Viewed (0)
  3. src/cmd/go/internal/lockedfile/internal/filelock/filelock.go

    package filelock
    
    import (
    	"errors"
    	"io/fs"
    )
    
    // A File provides the minimal set of methods required to lock an open file.
    // File implementations must be usable as map keys.
    // The usual implementation is *os.File.
    type File interface {
    	// Name returns the name of the file.
    	Name() string
    
    	// Fd returns a valid file descriptor.
    	// (If the File is an *os.File, it must not be closed.)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 17 02:24:35 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  4. src/syscall/syscall_darwin.go

    // but it is also input to mksyscall,
    // which parses the //sys lines and generates system call stubs.
    // Note that sometimes we use a lowercase //sys name and wrap
    // it in our own nicer implementation, either here or in
    // syscall_bsd.go or syscall_unix.go.
    
    package syscall
    
    import (
    	"internal/abi"
    	"unsafe"
    )
    
    func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:50 UTC 2024
    - 11K bytes
    - Viewed (0)
  5. src/math/big/natdiv.go

    starts with a blunt critique of Knuth's presentation (among others) and then
    presents a more detailed and easier to follow treatment of long division,
    including an implementation in Pascal. But the algorithm and implementation
    work entirely in terms of 3-by-2 division, which is much less useful on modern
    hardware than an algorithm using 2-by-1 division. The proofs are a bit too
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 17:02:38 UTC 2024
    - 34.4K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/typeparam.go

    func (t *TypeParam) Underlying() Type {
    	return t.iface()
    }
    
    func (t *TypeParam) String() string { return TypeString(t, nil) }
    
    // ----------------------------------------------------------------------------
    // Implementation
    
    func (t *TypeParam) cleanup() {
    	t.iface()
    	t.check = nil
    }
    
    // iface returns the constraint interface of t.
    func (t *TypeParam) iface() *Interface {
    	bound := t.bound
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  7. src/internal/coverage/cfile/apis.go

    	}
    	if cmode != coverage.CtrModeAtomic {
    		return fmt.Errorf("ClearCounters invoked for program built with -covermode=%s (please use -covermode=atomic)", cmode.String())
    	}
    
    	// Implementation note: this function would be faster and simpler
    	// if we could just zero out the entire counter array, but for the
    	// moment we go through and zero out just the slots in the array
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:57:47 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  8. src/runtime/memclr_ppc64x.s

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build ppc64 || ppc64le
    
    #include "textflag.h"
    
    // See memclrNoHeapPointers Go doc for important implementation constraints.
    
    // func memclrNoHeapPointers(ptr unsafe.Pointer, n uintptr)
    TEXT runtime·memclrNoHeapPointers<ABIInternal>(SB), NOSPLIT|NOFRAME, $0-16
    	// R3 = ptr
    	// R4 = n
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 16 17:08:59 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  9. src/errors/example_test.go

    // license that can be found in the LICENSE file.
    
    package errors_test
    
    import (
    	"errors"
    	"fmt"
    	"io/fs"
    	"os"
    	"time"
    )
    
    // MyError is an error implementation that includes a time and message.
    type MyError struct {
    	When time.Time
    	What string
    }
    
    func (e MyError) Error() string {
    	return fmt.Sprintf("%v: %v", e.When, e.What)
    }
    
    func oops() error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 02:08:40 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  10. src/cmd/link/internal/ld/heap.go

    // Copyright 2020 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package ld
    
    import "cmd/link/internal/loader"
    
    // Min-heap implementation, for the deadcode pass.
    // Specialized for loader.Sym elements.
    
    type heap []loader.Sym
    
    func (h *heap) push(s loader.Sym) {
    	*h = append(*h, s)
    	// sift up
    	n := len(*h) - 1
    	for n > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 14 16:55:22 UTC 2023
    - 1.9K bytes
    - Viewed (0)
Back to top