- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 623 for Implementation (0.31 sec)
-
src/sort/sort_impl_go121.go
// slices package to implement some `sort` functions faster. However, until // the bootstrap compiler uses Go 1.21 or later, we keep a fallback version // in sort_impl_120.go that retains the old implementation. package sort import "slices" func intsImpl(x []int) { slices.Sort(x) } func float64sImpl(x []float64) { slices.Sort(x) } func stringsImpl(x []string) { slices.Sort(x) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jul 21 13:00:18 UTC 2023 - 876 bytes - Viewed (0) -
src/os/types_plan9.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package os import ( "syscall" "time" ) // A fileStat is the implementation of FileInfo returned by Stat and Lstat. type fileStat struct { name string size int64 mode FileMode modTime time.Time sys any } func (fs *fileStat) Size() int64 { return fs.size }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Oct 08 03:57:40 UTC 2022 - 797 bytes - Viewed (0) -
src/internal/bytealg/index_ppc64x.go
func init() { MaxLen = 32 } // Cutover reports the number of failures of IndexByte we should tolerate // before switching over to Index. // n is the number of bytes processed so far. // See the bytes.Index implementation for details. func Cutover(n int) int { // 1 error per 8 characters, plus a few slop to start. return (n + 16) / 8
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 09 05:34:46 UTC 2023 - 637 bytes - Viewed (0) -
src/runtime/atomic_pointer.go
} // atomic_storePointer is the implementation of runtime/internal/UnsafePointer.Store // (like StoreNoWB but with the write barrier). // //go:nosplit //go:linkname atomic_storePointer internal/runtime/atomic.storePointer func atomic_storePointer(ptr *unsafe.Pointer, new unsafe.Pointer) { atomicstorep(unsafe.Pointer(ptr), new) } // atomic_casPointer is the implementation of runtime/internal/UnsafePointer.CompareAndSwap
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 4K bytes - Viewed (0) -
src/runtime/wincallback.go
// B instruction branches to callbackasm1. // callbackasm1 takes the callback index from R12 and // indexes into an array that stores information about each callback. // It then calls the Go implementation for that callback. #include "textflag.h" TEXT runtime·callbackasm(SB),NOSPLIT|NOFRAME,$0 `) for i := 0; i < maxCallback; i++ { fmt.Fprintf(&buf, "\tMOVW\t$%d, R12\n", i)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 24 19:29:51 UTC 2023 - 3.5K bytes - Viewed (0) -
src/crypto/cipher/gcm_test.go
func wrap(b cipher.Block) cipher.Block { return &wrapper{b} } func TestGCMAsm(t *testing.T) { // Create a new pair of AEADs, one using the assembly implementation // and one using the generic Go implementation. newAESGCM := func(key []byte) (asm, generic cipher.AEAD, err error) { block, err := aes.NewCipher(key[:]) if err != nil { return nil, nil, err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 25 15:27:49 UTC 2023 - 35K bytes - Viewed (0) -
src/cmd/go/internal/load/flag.go
BuildGcflags PerPackageFlag // -gcflags BuildLdflags PerPackageFlag // -ldflags BuildGccgoflags PerPackageFlag // -gccgoflags ) // A PerPackageFlag is a command-line flag implementation (a flag.Value) // that allows specifying different effective flags for different packages. // See 'go help build' for more details about per-package flags. type PerPackageFlag struct { raw string present bool
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 19 20:20:43 UTC 2022 - 2.6K bytes - Viewed (0) -
src/net/http/httputil/persist.go
// ErrPersistEOF (above) reports that the remote side is closed. var errClosed = errors.New("i/o operation on closed connection") // ServerConn is an artifact of Go's early HTTP implementation. // It is low-level, old, and unused by Go's current HTTP stack. // We should have deleted it before Go 1. // // Deprecated: Use the Server in package [net/http] instead. type ServerConn struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 11.1K bytes - Viewed (0) -
src/go/doc/comment/wrap_test.go
} // Check that score matches slow reference implementation. slowSeq, slowScore := wrapSlow(words, max) if score != slowScore { t.Fatalf("wrap score = %d != wrapSlow score %d\nwrap: %v\nslow: %v", score, slowScore, seq, slowSeq) } }) } }) } } // wrapSlow is an O(n²) reference implementation for wrap. // It returns a minimal-score sequence along with the score.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:31:45 UTC 2022 - 3.7K bytes - Viewed (0) -
src/crypto/sha1/fallback_test.go
package sha1 import ( "fmt" "io" "testing" ) // Tests the fallback code path in case the optimized asm // implementation cannot be used. // See also TestBlockGeneric. func TestGenericPath(t *testing.T) { if !useAsm { t.Skipf("assembly implementation unavailable") } useAsm = false defer func() { useAsm = true }() c := New() in := "ΑΒΓΔΕϜΖΗΘΙΚΛΜΝΞΟΠϺϘΡΣΤΥΦΧΨΩ"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:29:44 UTC 2024 - 853 bytes - Viewed (0)