Skip to content

Commit

Permalink
Fix inclusion of x86-specific header
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroMemes committed Sep 30, 2024
1 parent 84eb563 commit 31f4936
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions include/libhat/Defines.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,8 @@
#define LIBHAT_RETURN_ADDRESS() _ReturnAddress()
#define LIBHAT_BSF32(num) hat::detail::bsf(num)
#else
#if defined(__clang__)
#include <x86intrin.h>
#elif defined(__GNUC__)
#include <x86gprintrin.h>
#endif

#define LIBHAT_RETURN_ADDRESS() __builtin_extract_return_addr(__builtin_return_address(0))
#define LIBHAT_BSF32(num) _bit_scan_forward(num)
#define LIBHAT_BSF32(num) __builtin_ctz(num)
#endif

#if __cpp_if_consteval >= 202106L
Expand Down

0 comments on commit 31f4936

Please sign in to comment.