- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 117 for Implementation (0.3 sec)
-
src/sync/once.go
// without calling f. func (o *Once) Do(f func()) { // Note: Here is an incorrect implementation of Do: // // if o.done.CompareAndSwap(0, 1) { // f() // } // // Do guarantees that when it returns, f has finished. // This implementation would not implement that guarantee: // given two simultaneous calls, the winner of the cas would
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 21:14:51 UTC 2024 - 2.5K bytes - Viewed (0) -
src/io/fs/sub.go
// // If dir is ".", Sub returns fsys unchanged. // Otherwise, if fs implements [SubFS], Sub returns fsys.Sub(dir). // Otherwise, Sub returns a new [FS] implementation sub that, // in effect, implements sub.Open(name) as fsys.Open(path.Join(dir, name)). // The implementation also translates calls to ReadDir, ReadFile, and Glob appropriately. // // Note that Sub(os.DirFS("/"), "prefix") is equivalent to os.DirFS("/prefix")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Feb 10 02:10:17 UTC 2024 - 3.6K bytes - Viewed (0) -
src/internal/fuzz/pcg.go
restore(randState, randInc uint64) } // The functions in pcg implement a 32 bit PRNG with a 64 bit period: pcg xsh rr // 64 32. See https://www.pcg-random.org/ for more information. This // implementation is geared specifically towards the needs of fuzzing: Simple // creation and use, no reproducibility, no concurrency safety, just the // necessary methods, optimized for speed. var globalInc atomic.Uint64 // PCG stream
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 19:28:14 UTC 2024 - 3.3K 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/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) -
src/crypto/sha512/fallback_test.go
package sha512 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 - 964 bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/typesinternal/toonew.go
// nested fields and methods than are shown here.) Clients // that use the compatibility shim T will compile with any // version of go, whether older or newer than go1.22, but only // the newer version will use the std.Real implementation. // // Now consider a reference to method M in new(T).F.M() in a // module that requires a minimum of go1.21. The analysis may // occur using a version of Go higher than 1.21, selecting the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 2.9K bytes - Viewed (0) -
src/io/fs/fs.go
// but also by other packages. // // See the [testing/fstest] package for support with testing // implementations of file systems. package fs import ( "internal/oserror" "time" "unicode/utf8" ) // An FS provides access to a hierarchical file system. // // The FS interface is the minimum implementation required of the file system. // A file system may implement additional interfaces,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 15 21:21:41 UTC 2024 - 9.4K bytes - Viewed (0) -
src/crypto/aes/block.go
// Copyright 2009 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. // This Go implementation is derived in part from the reference // ANSI C implementation, which carries the following notice: // // rijndael-alg-fst.c // // @version 3.0 (December 2000) // // Optimised ANSI C code for the Rijndael cipher (now AES) //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 18:57:38 UTC 2024 - 6.4K bytes - Viewed (0) -
src/runtime/coro.go
// license that can be found in the LICENSE file. package runtime import "unsafe" // A coro represents extra concurrency without extra parallelism, // as would be needed for a coroutine implementation. // The coro does not represent a specific coroutine, only the ability // to do coroutine-style control transfers. // It can be thought of as like a special channel that always has
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 19:09:18 UTC 2024 - 7.4K bytes - Viewed (0)