Skip to content

Commit

Permalink
Merge pull request OpenMathLib#4549 from martin-frbg/issue4496
Browse files Browse the repository at this point in the history
Stop using sched_yield on non-Windows x86_64
  • Loading branch information
martin-frbg committed Mar 11, 2024
2 parents cc9713a + 07b1c0b commit 4fd8bc1
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions common.h
Original file line number Diff line number Diff line change
Expand Up @@ -358,34 +358,20 @@ typedef int blasint;
#define YIELDING __asm__ __volatile__ ("nop;nop;nop;nop;nop;nop;nop;nop; \n");
#endif

#ifdef BULLDOZER
#ifndef YIELDING
#define YIELDING __asm__ __volatile__ ("nop;nop;nop;nop;nop;nop;nop;nop;\n");
#endif
#endif


#if defined(POWER8) || defined(POWER9) || defined(POWER10)
#ifndef YIELDING
#define YIELDING __asm__ __volatile__ ("nop;nop;nop;nop;nop;nop;nop;nop;\n");
#endif
#endif

/*
#ifdef PILEDRIVER
#ifndef YIELDING
#define YIELDING __asm__ __volatile__ ("nop;nop;nop;nop;nop;nop;nop;nop;\n");
#endif
#endif
*/

/*
#ifdef STEAMROLLER
#if defined(ARCH_X86_64)
#ifndef YIELDING
#define YIELDING __asm__ __volatile__ ("nop;nop;nop;nop;nop;nop;nop;nop;\n");
#endif
#endif
*/


#ifdef __EMSCRIPTEN__
#define YIELDING
Expand Down

0 comments on commit 4fd8bc1

Please sign in to comment.