Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for uintptr_t (0.26 sec)

  1. src/cmd/cgo/internal/test/cthread_windows.c

    addThread(void *p)
    {
    	int i, max;
    	
    	max = *(int*)p;
    	for(i=0; i<max; i++)
    		Add(i);
    	return 0;
    }
    
    void
    doAdd(int max, int nthread)
    {
    	enum { MaxThread = 20 };
    	int i;
    	uintptr_t thread_id[MaxThread];
    	
    	if(nthread > MaxThread)
    		nthread = MaxThread;
    	for(i=0; i<nthread; i++)
    		thread_id[i] = _beginthreadex(0, 0, addThread, &max, 0, 0);
    	for(i=0; i<nthread; i++) {
    C
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed May 17 21:53:11 GMT 2023
    - 1.1K bytes
    - Viewed (0)
  2. src/cmd/cgo/doc.go

    linkage to the desired libraries. The main function is provided by
    _cgo_main.c:
    
    	int main() { return 0; }
    	void crosscall2(void(*fn)(void*), void *a, int c, uintptr_t ctxt) { }
    	uintptr_t _cgo_wait_runtime_init_done(void) { return 0; }
    	void _cgo_release_context(uintptr_t ctxt) { }
    	char* _cgo_topofstack(void) { return (char*)0; }
    	void _cgo_allocate(void *a, int c) { }
    	void _cgo_panic(void *a, int c) { }
    	void _cgo_reginit(void) { }
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  3. tensorflow/c/eager/gradients.cc

    // may lead to collisions. Introduce another way to get a unique id for this
    // tensor.
    int64_t ToId(const AbstractTensorHandle* t) {
      return static_cast<int64_t>(reinterpret_cast<uintptr_t>(t));
    }
    
    Status ZerosLike(AbstractContext* ctx, AbstractTensorHandle* t,
                     AbstractTensorHandle** result) {
      AbstractOperationPtr op(ctx->CreateOperation());
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  4. src/cmd/cgo/gcc.go

    // to release (that's why this stuff is in CF*Internal*.h),
    // as can the definition of type info vs payload above.
    //
    #if __LP64__
    #define CF_IS_TAGGED_OBJ(PTR)	((uintptr_t)(PTR) & 0x1)
    #define CF_TAGGED_OBJ_TYPE(PTR)	((uintptr_t)(PTR) & 0xF)
    #else
    #define CF_IS_TAGGED_OBJ(PTR)	0
    #define CF_TAGGED_OBJ_TYPE(PTR)	0
    #endif
    
    enum {
        kCFTaggedObjectID_Invalid = 0,
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  5. cni/pkg/nodeagent/fakes_test.go

    	return nil
    }
    
    // fakeNs is a mock struct for testing
    type fakeNs struct {
    	closed *atomic.Bool
    	fd     uintptr
    	inode  uint64
    }
    
    func newFakeNs(fd uintptr) *fakeNs {
    	// the fake inode is the fd! magic.
    	return &fakeNs{closed: &atomic.Bool{}, fd: fd, inode: uint64(fd)}
    }
    
    func newFakeNsInode(fd uintptr, inode uint64) *fakeNs {
    	return &fakeNs{closed: &atomic.Bool{}, fd: fd, inode: inode}
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  6. internal/disk/stat_windows.go

    	//   _Out_ LPDWORD lpTotalNumberOfClusters
    	// );
    	_, _, _ = GetDiskFreeSpace.Call(uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr(path))),
    		uintptr(unsafe.Pointer(&lpSectorsPerCluster)),
    		uintptr(unsafe.Pointer(&lpBytesPerSector)),
    		uintptr(unsafe.Pointer(&lpNumberOfFreeClusters)),
    		uintptr(unsafe.Pointer(&lpTotalNumberOfClusters)))
    
    	info.Files = uint64(lpTotalNumberOfClusters)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  7. api/except.txt

    pkg syscall (windows-386), type AddrinfoW struct, Addr uintptr
    pkg syscall (windows-386), type CertChainPolicyPara struct, ExtraPolicyPara uintptr
    pkg syscall (windows-386), type CertChainPolicyStatus struct, ExtraPolicyStatus uintptr
    pkg syscall (windows-386), type CertContext struct, CertInfo uintptr
    pkg syscall (windows-386), type CertRevocationInfo struct, CrlInfo uintptr
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu May 25 00:13:30 GMT 2023
    - 34.6K bytes
    - Viewed (0)
  8. cni/pkg/nodeagent/netns.go

    // limitations under the License.
    
    package nodeagent
    
    import "io"
    
    type NetnsFd interface {
    	Fd() uintptr
    }
    
    type Netns interface {
    	NetnsFd
    	Inode() uint64
    }
    type NetnsCloser interface {
    	io.Closer
    	Netns
    }
    
    type NetnsWithFd struct {
    	netns io.Closer
    	fd    uintptr
    	inode uint64
    }
    
    func (n *NetnsWithFd) Close() error {
    	if n.netns == nil {
    		return nil
    	}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 1.2K bytes
    - Viewed (0)
  9. api/go1.17.txt

    pkg runtime/cgo (darwin-amd64-cgo), type Handle uintptr
    pkg runtime/cgo (darwin-arm64-cgo), func NewHandle(interface{}) Handle
    pkg runtime/cgo (darwin-arm64-cgo), method (Handle) Delete()
    pkg runtime/cgo (darwin-arm64-cgo), method (Handle) Value() interface{}
    pkg runtime/cgo (darwin-arm64-cgo), type Handle uintptr
    pkg runtime/cgo (freebsd-386-cgo), func NewHandle(interface{}) Handle
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Feb 17 20:31:46 GMT 2023
    - 18K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/test/issue21897.go

    	//fmt.Printf("CFNumberRef: %x\n", uintptr(unsafe.Pointer(xCFNumberRef)))
    }
    
    var xCFNumberRef C.CFNumberRef
    
    func testCFDateRef() {
    	xCFDateRef = C.CFDateCreate(C.kCFAllocatorSystemDefault, 0) // 0 value is 1 Jan 2001 00:00:00 GMT
    	//fmt.Printf("CFDateRef: %x\n", uintptr(unsafe.Pointer(xCFDateRef)))
    }
    
    var xCFDateRef C.CFDateRef
    
    func testCFBooleanRef() {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 1.4K bytes
    - Viewed (0)
Back to top