added optimizations for RISC-V YIELDING

This commit is contained in:
daichengrong
2024-11-22 11:13:24 +08:00
parent 18014b04c8
commit 0b3db03d4b

View File

@@ -372,6 +372,12 @@ typedef int blasint;
#endif
#endif
#if defined(ARCH_RISCV64)
#ifndef YIELDING
#define YIELDING __asm__ __volatile__ ("nop;nop;nop;nop;nop;nop;nop;nop;\n");
#endif
#endif
#ifdef __EMSCRIPTEN__
#define YIELDING