- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for stdcall0 (0.12 sec)
-
src/runtime/netpoll_windows.go
errno := stdcall2(_NtCancelWaitCompletionPacket, mp.waitIocpHandle, 1) switch errno { case STATUS_CANCELLED: // STATUS_CANCELLED is returned when the associated timer has already expired, // in which automatically cancels the wait completion packet. fallthrough case STATUS_SUCCESS: dt := -delay / 100 // relative sleep (negative), 100ns units
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 9.4K bytes - Viewed (0) -
src/runtime/mem_windows.go
// which prevents us from allocating more stack. // //go:nosplit func sysAllocOS(n uintptr) unsafe.Pointer { return unsafe.Pointer(stdcall4(_VirtualAlloc, 0, n, _MEM_COMMIT|_MEM_RESERVE, _PAGE_READWRITE)) } func sysUnusedOS(v unsafe.Pointer, n uintptr) { r := stdcall3(_VirtualFree, uintptr(v), n, _MEM_DECOMMIT) if r != 0 { return } // Decommit failed. Usual reason is that we've merged memory from two different
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 19:05:10 UTC 2023 - 3.9K bytes - Viewed (0) -
src/runtime/os_windows_arm64.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 19 00:40:56 UTC 2021 - 339 bytes - Viewed (0) -
src/runtime/export_windows_test.go
import "unsafe" const MaxArgs = maxArgs var ( OsYield = osyield TimeBeginPeriodRetValue = &timeBeginPeriodRetValue ) func NumberOfProcessors() int32 { var info systeminfo stdcall1(_GetSystemInfo, uintptr(unsafe.Pointer(&info))) return int32(info.dwnumberofprocessors) } type ContextStub struct { context } func (c ContextStub) GetPC() uintptr { return c.ip() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 19 17:25:00 UTC 2024 - 759 bytes - Viewed (0) -
src/runtime/os_windows_arm.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package runtime import "unsafe" //go:nosplit func cputicks() int64 { var counter int64 stdcall1(_QueryPerformanceCounter, uintptr(unsafe.Pointer(&counter))) return counter } func checkgoarm() { if goarm < 7 { print("Need atomic synchronization instructions, coprocessor ",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 20 00:23:03 UTC 2018 - 511 bytes - Viewed (0) -
src/runtime/os_aix.go
throw("runPerThreadSyscall only valid on linux") } //go:nosplit func getuid() int32 { r, errno := syscall0(&libc_getuid) if errno != 0 { print("getuid failed ", errno) throw("getuid") } return int32(r) } //go:nosplit func geteuid() int32 { r, errno := syscall0(&libc_geteuid) if errno != 0 { print("geteuid failed ", errno) throw("geteuid") } return int32(r) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 8.9K bytes - Viewed (0) -
src/runtime/sys_windows_386.s
CMPL CX, $0 JE docall // Copy args to the stack. MOVL CX, AX SALL $2, AX SUBL AX, SP // room for args MOVL SP, DI MOVL libcall_args(BX), SI CLD REP; MOVSL docall: // Call stdcall or cdecl function. // DI SI BP BX are preserved, SP is not CALL libcall_fn(BX) MOVL BP, SP // Return result. MOVL fn+0(FP), BX MOVL AX, libcall_r1(BX) MOVL DX, libcall_r2(BX) // GetLastError().
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 21 15:56:43 UTC 2023 - 6.5K bytes - Viewed (0) -
src/runtime/syscall_aix.go
pid, err = syscall1(&libc_fork, flags) return } //go:linkname syscall_getpid syscall.getpid //go:nosplit func syscall_getpid() (pid, err uintptr) { pid, err = syscall0(&libc_getpid) return } //go:linkname syscall_ioctl syscall.ioctl //go:nosplit func syscall_ioctl(fd, req, arg uintptr) (err uintptr) { _, err = syscall3(&libc_ioctl, fd, req, arg) return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 14 17:22:18 UTC 2023 - 6.3K bytes - Viewed (0) -
src/runtime/sys_windows_amd64.s
_4args: MOVQ 24(SI), R9 MOVQ R9, X3 _3args: MOVQ 16(SI), R8 MOVQ R8, X2 _2args: MOVQ 8(SI), DX MOVQ DX, X1 _1args: MOVQ 0(SI), CX MOVQ CX, X0 _0args: // Call stdcall function. CALL AX ADDQ $(const_maxArgs*8), SP // Return result. MOVQ 0(SP), CX MOVQ 8(SP), SP MOVQ AX, libcall_r1(CX) // Floating point return values are returned in XMM0. Setting r2 to this
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 19 07:24:08 UTC 2024 - 8.4K bytes - Viewed (0)