Skip to content

Commit

Permalink
Revert "Fixing performance regression"
Browse files Browse the repository at this point in the history
This reverts commit 6913ff6.

This was accidently commited...
  • Loading branch information
Thomas Heller committed May 30, 2017
1 parent 6913ff6 commit 0b4d2f7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hpx/util/assert.hpp
Expand Up @@ -29,7 +29,13 @@

#if defined(HPX_DISABLE_ASSERTS) || defined(BOOST_DISABLE_ASSERTS) || defined(NDEBUG)

#if defined(HPX_GCC_VERSION) || defined(HPX_CLANG_VERSION)
# define HPX_ASSERT(expr) ((expr) ? (void)0 : __builtin_unreachable())
#elif defined(HPX_MSVC) && !defined(HPX_INTEL_WIN)
# define HPX_ASSERT(expr) __assume(!!(expr))
#else
# define HPX_ASSERT(expr) ((void)0)
#endif

#elif defined(HPX_ENABLE_ASSERT_HANDLER) || defined(BOOST_ENABLE_ASSERT_HANDLER)

Expand Down

0 comments on commit 0b4d2f7

Please sign in to comment.