PATH:
opt
/
hc_python
/
lib
/
python3.12
/
site-packages
/
greenlet
/
platform
#ifdef SLP_EVAL #define STACK_MAGIC 0 #define REG_FP "r8" #ifdef __CSKYABIV2__ #define REGS_TO_SAVE_GENERAL "r4", "r5", "r6", "r7", "r9", "r10", "r11", "r15",\ "r16", "r17", "r18", "r19", "r20", "r21", "r22",\ "r23", "r24", "r25" #if defined (__CSKY_HARD_FLOAT__) || (__CSKY_VDSP__) #define REGS_TO_SAVE REGS_TO_SAVE_GENERAL, "vr8", "vr9", "vr10", "vr11", "vr12",\ "vr13", "vr14", "vr15" #else #define REGS_TO_SAVE REGS_TO_SAVE_GENERAL #endif #else #define REGS_TO_SAVE "r9", "r10", "r11", "r12", "r13", "r15" #endif static int #ifdef __GNUC__ __attribute__((optimize("no-omit-frame-pointer"))) #endif slp_switch(void) { int *stackref, stsizediff; int result; __asm__ volatile ("" : : : REGS_TO_SAVE); __asm__ ("mov %0, sp" : "=r" (stackref)); { SLP_SAVE_STATE(stackref, stsizediff); __asm__ volatile ( "addu sp,%0\n" "addu "REG_FP",%0\n" : : "r" (stsizediff) ); SLP_RESTORE_STATE(); } __asm__ volatile ("movi %0, 0" : "=r" (result)); __asm__ volatile ("" : : : REGS_TO_SAVE); return result; } #endif
[+]
__pycache__
[-] switch_arm64_msvc.h
[edit]
[-] switch_ppc_unix.h
[edit]
[-] switch_amd64_unix.h
[edit]
[-] switch_x86_msvc.h
[edit]
[-] switch_aarch64_gcc.h
[edit]
[-] switch_ppc_macosx.h
[edit]
[-] __init__.py
[edit]
[-] switch_riscv_unix.h
[edit]
[-] switch_sparc_sun_gcc.h
[edit]
[-] switch_x86_unix.h
[edit]
[-] switch_ppc64_linux.h
[edit]
[+]
..
[-] switch_arm32_gcc.h
[edit]
[-] switch_arm64_masm.asm
[edit]
[-] switch_m68k_gcc.h
[edit]
[-] switch_mips_unix.h
[edit]
[-] switch_x64_masm.obj
[edit]
[-] switch_s390_unix.h
[edit]
[-] switch_ppc_linux.h
[edit]
[-] switch_alpha_unix.h
[edit]
[-] switch_arm64_masm.obj
[edit]
[-] switch_ppc_aix.h
[edit]
[-] switch_ppc64_aix.h
[edit]
[-] setup_switch_x64_masm.cmd
[edit]
[-] switch_csky_gcc.h
[edit]
[-] switch_sh_gcc.h
[edit]
[-] switch_x64_masm.asm
[edit]
[-] switch_x32_unix.h
[edit]
[-] switch_x64_msvc.h
[edit]
[-] switch_loongarch64_linux.h
[edit]
[-] switch_arm32_ios.h
[edit]