Skip to content

Commit 4fd8bc1

Browse files
authored
Merge pull request #4549 from martin-frbg/issue4496
Stop using sched_yield on non-Windows x86_64
2 parents cc9713a + 07b1c0b commit 4fd8bc1

1 file changed

Lines changed: 2 additions & 16 deletions

File tree

common.h

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -358,34 +358,20 @@ typedef int blasint;
358358
#define YIELDING __asm__ __volatile__ ("nop;nop;nop;nop;nop;nop;nop;nop; \n");
359359
#endif
360360

361-
#ifdef BULLDOZER
362-
#ifndef YIELDING
363-
#define YIELDING __asm__ __volatile__ ("nop;nop;nop;nop;nop;nop;nop;nop;\n");
364-
#endif
365-
#endif
366-
367361

368362
#if defined(POWER8) || defined(POWER9) || defined(POWER10)
369363
#ifndef YIELDING
370364
#define YIELDING __asm__ __volatile__ ("nop;nop;nop;nop;nop;nop;nop;nop;\n");
371365
#endif
372366
#endif
373367

374-
/*
375-
#ifdef PILEDRIVER
376-
#ifndef YIELDING
377-
#define YIELDING __asm__ __volatile__ ("nop;nop;nop;nop;nop;nop;nop;nop;\n");
378-
#endif
379-
#endif
380-
*/
381368

382-
/*
383-
#ifdef STEAMROLLER
369+
#if defined(ARCH_X86_64)
384370
#ifndef YIELDING
385371
#define YIELDING __asm__ __volatile__ ("nop;nop;nop;nop;nop;nop;nop;nop;\n");
386372
#endif
387373
#endif
388-
*/
374+
389375

390376
#ifdef __EMSCRIPTEN__
391377
#define YIELDING

0 commit comments

Comments
 (0)