Browse Source

added optimizations for RISC-V YIELDING

tags/v0.3.29
daichengrong 10 months ago
parent
commit
0b3db03d4b
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      common.h

+ 6
- 0
common.h 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


Loading…
Cancel
Save