mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 14:58:30 +00:00
Add OpenMP support
This commit is contained in:
parent
c1e18e7903
commit
5f8e9f14c1
742 changed files with 94643 additions and 1279 deletions
20
libc/nt/kernel32/GetCurrentProcessorNumberEx.S
Normal file
20
libc/nt/kernel32/GetCurrentProcessorNumberEx.S
Normal file
|
@ -0,0 +1,20 @@
|
|||
#include "libc/nt/codegen.h"
|
||||
.imp kernel32,__imp_GetCurrentProcessorNumberEx,GetCurrentProcessorNumberEx
|
||||
|
||||
.text.windows
|
||||
.ftrace1
|
||||
GetCurrentProcessorNumberEx:
|
||||
.ftrace2
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
mov %rdi,%rcx
|
||||
sub $32,%rsp
|
||||
call *__imp_GetCurrentProcessorNumberEx(%rip)
|
||||
leave
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
#endif
|
||||
ret
|
||||
.endfn GetCurrentProcessorNumberEx,globl
|
||||
.previous
|
Loading…
Add table
Add a link
Reference in a new issue