Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 341 for linkname (0.24 sec)

  1. 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)
  2. 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)
  3. src/cmd/compile/internal/noder/noder.go

    	}
    	return filename
    }
    
    // noder transforms package syntax's AST into a Node tree.
    type noder struct {
    	file       *syntax.File
    	linknames  []linkname
    	pragcgobuf [][]string
    	err        chan syntax.Error
    }
    
    // linkname records a //go:linkname directive.
    type linkname struct {
    	pos    syntax.Pos
    	local  string
    	remote string
    }
    
    var unOps = [...]ir.Op{
    	syntax.Recv: ir.ORECV,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 11 20:40:57 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  4. src/crypto/x509/root.go

    // license that can be found in the LICENSE file.
    
    package x509
    
    import (
    	"internal/godebug"
    	"sync"
    	_ "unsafe" // for linkname
    )
    
    // systemRoots should be an internal detail,
    // but widely used packages access it using linkname.
    // Notable members of the hall of shame include:
    //   - github.com/breml/rootcerts
    //
    // 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 17:58:53 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  5. src/runtime/rand.go

    //
    //go:nosplit
    func rand32() uint32 {
    	return uint32(rand())
    }
    
    // rand returns a random uint64 from the per-m chacha8 state.
    // Do not change signature: used via linkname from other packages.
    //
    //go:nosplit
    //go:linkname rand
    func rand() uint64 {
    	// Note: We avoid acquirem here so that in the fast path
    	// there is just a getg, an inlined c.Next, and a return.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 14:32:47 UTC 2024
    - 8K bytes
    - Viewed (0)
  6. src/runtime/cgo.go

    	_cgo_getstackbound            unsafe.Pointer
    )
    
    // iscgo is set to true by the runtime/cgo package
    //
    // iscgo should be an internal detail,
    // but widely used packages access it using linkname.
    // Notable members of the hall of shame include:
    //   - github.com/ebitengine/purego
    //
    // Do not remove or change the type signature.
    // See go.dev/issue/67401.
    //
    //go:linkname iscgo
    var iscgo bool
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  7. src/runtime/alg.go

    // actually supports the instructions used by the AES-based
    // hash implementation.
    var useAeshash bool
    
    // in asm_*.s
    
    // memhash should be an internal detail,
    // but widely used packages access it using linkname.
    // Notable members of the hall of shame include:
    //   - github.com/aacfactory/fns
    //   - github.com/dgraph-io/ristretto
    //   - github.com/minio/simdjson-go
    //   - github.com/nbd-wtf/go-nostr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  8. src/cmd/link/testdata/linkname/coro_var.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 "var" to reference newcoro is not allowed.
    
    package main
    
    import "unsafe"
    
    func main() {
    	call(&newcoro)
    }
    
    //go:linkname newcoro runtime.newcoro
    var newcoro unsafe.Pointer
    
    //go:noinline
    func call(*unsafe.Pointer) {
    	// not implemented
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:05:33 UTC 2024
    - 411 bytes
    - Viewed (0)
  9. src/vendor/golang.org/x/net/route/syscall.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build darwin || dragonfly || freebsd || netbsd || openbsd
    
    package route
    
    import _ "unsafe" // for linkname
    
    //go:linkname sysctl syscall.sysctl
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 396 bytes
    - Viewed (0)
  10. src/cmd/link/testdata/linkname/coro.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 coroswitch is not allowed, even if iter.Pull
    // is instantiated in the same package.
    
    package main
    
    import (
    	"iter"
    	"unsafe"
    )
    
    func seq(yield func(int) bool) {
    	yield(123)
    }
    
    func main() {
    	next, stop := iter.Pull(seq)
    	next()
    	stop()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:05:33 UTC 2024
    - 506 bytes
    - Viewed (0)
Back to top