- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 105 for linkname (3.35 sec)
-
src/internal/cpu/cpu_arm64_darwin.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build arm64 && darwin && !ios package cpu import _ "unsafe" // for linkname func osInit() { ARM64.HasATOMICS = sysctlEnabled([]byte("hw.optional.armv8_1_atomics\x00")) ARM64.HasCRC32 = sysctlEnabled([]byte("hw.optional.armv8_crc32\x00"))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 1.3K bytes - Viewed (0) -
src/internal/testlog/exit.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 testlog import ( "sync" _ "unsafe" // for linkname ) // PanicOnExit0 reports whether to panic on a call to os.Exit(0). // This is in the testlog package because, like other definitions in // package testlog, it is a hook between the testing package and the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 1.3K bytes - Viewed (0) -
pkg/proxy/ipvs/testing/fake.go
res := sets.New[string]() for linkName := range h.localAddresses { if linkName == dev { continue } for _, addr := range h.localAddresses[linkName] { if h.isValidForSet(addr) { res.Insert(addr) } } } return res, nil } // SetLocalAddresses set IP addresses to the given interface device. It's not part of interface.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 19 01:20:51 UTC 2023 - 5.5K bytes - Viewed (0) -
src/crypto/tls/defaults.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package tls import ( "internal/godebug" "slices" _ "unsafe" // for linkname ) // Defaults are collected in this file to allow distributions to more easily patch // them to apply local policies. var tlskyber = godebug.New("tlskyber") func defaultCurvePreferences() []CurveID {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 3.9K bytes - Viewed (0) -
src/reflect/badlinkname.go
// It is no longer used by this package and is here entirely for the // linkname uses. // //go:linkname unusedIfaceIndir reflect.ifaceIndir func unusedIfaceIndir(t *abi.Type) bool { return t.Kind_&abi.KindDirectIface == 0 } //go:linkname valueInterface // The compiler doesn't allow linknames on methods, for good reasons. // We use this trick to push linknames of the methods. // Do not call them in this package.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 4.5K bytes - Viewed (0) -
src/internal/runtime/atomic/atomic_andor_generic.go
// license that can be found in the LICENSE file. //go:build arm || wasm // Export some functions via linkname to assembly in sync/atomic. // //go:linkname And32 //go:linkname Or32 //go:linkname And64 //go:linkname Or64 //go:linkname Anduintptr //go:linkname Oruintptr package atomic import _ "unsafe" // For linkname //go:nosplit func And32(ptr *uint32, val uint32) uint32 { for { old := *ptr
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 20:08:37 UTC 2024 - 1.2K bytes - Viewed (0) -
src/runtime/proflabel.go
// license that can be found in the LICENSE file. package runtime import "unsafe" var labelSync uintptr // runtime_setProfLabel should be an internal detail, // but widely used packages access it using linkname. // Notable members of the hall of shame include: // - github.com/cloudwego/localsession // - github.com/DataDog/datadog-agent // // Do not remove or change the type signature. // See go.dev/issue/67401. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 2.1K bytes - Viewed (0) -
src/cmd/link/testdata/linkname/coro2.go
// Copyright 2024 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. // Linkname corostart is not allowed, as it doesn't have // a linknamed definition. package main import _ "unsafe" //go:linkname corostart runtime.corostart func corostart() func main() { corostart()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 367 bytes - Viewed (0) -
src/cmd/link/testdata/linkname/fastrand.go
// Copyright 2024 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. // Linkname fastrand is allowed _for now_, as it has a // linknamed definition, for legacy reason. // NOTE: this may not be allowed in the future. Don't do this! package main import _ "unsafe" //go:linkname fastrand runtime.fastrand func fastrand() uint32 func main() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 457 bytes - Viewed (0) -
src/runtime/syscall_aix.go
// // This is exported via linkname to assembly in the syscall package. // //go:nosplit //go:linkname syscall_Syscall func syscall_Syscall(fn, a1, a2, a3 uintptr) (r1, r2, err uintptr) { return 0, 0, _EINVAL } // This is syscall.RawSyscall, it exists to satisfy some build dependency, // but it doesn't work. // // This is exported via linkname to assembly in the syscall package. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 14 17:22:18 UTC 2023 - 6.3K bytes - Viewed (0)