Skip to content

Commit

Permalink
Remove mwr barrier macro in favor if mwr::barrier from atomics.h
Browse files Browse the repository at this point in the history
  • Loading branch information
janweinstock committed Feb 28, 2024
1 parent 85ba2c5 commit a92b134
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions include/mwr/core/compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,6 @@
#define MWR_DECL_DEPRECATED __declspec(deprecated)
#endif

#if defined(MWR_GCC) || defined(MWR_CLANG)
#define MWR_BARRIER \
{ asm volatile("" : : : "memory"); }
#elif defined(MWR_MSVC)
#define MWR_BARRIER _ReadWriteBarrier()
#endif

#if defined(MWR_GCC) || defined(MWR_CLANG)
#define MWR_UNREACHABLE __builtin_unreachable()
#elif defined(MWR_MSVC)
Expand Down

0 comments on commit a92b134

Please sign in to comment.