Skip to content

Commit

Permalink
push
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheng Zhao committed Mar 4, 2023
1 parent 733b470 commit f1e2b0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/hdr_atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#define HDR_ATOMIC_H__


#if defined(_MSC_VER)
#if defined(_MSC_VER) && !(defined(__clang__) && (defined(_M_ARM) || defined(_M_ARM64)))

#include <stdint.h>
#include <intrin.h>
Expand Down
4 changes: 2 additions & 2 deletions src/hdr_histogram.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ static int64_t power(int64_t base, int64_t exp)
return result;
}

#if defined(_MSC_VER)
#if defined(_MSC_VER) && !(defined(__clang__) && (defined(_M_ARM) || defined(_M_ARM64)))
# if defined(_WIN64)
# pragma intrinsic(_BitScanReverse64)
# else
Expand All @@ -143,7 +143,7 @@ static int64_t power(int64_t base, int64_t exp)

static int32_t count_leading_zeros_64(int64_t value)
{
#if defined(_MSC_VER)
#if defined(_MSC_VER) && !(defined(__clang__) && (defined(_M_ARM) || defined(_M_ARM64)))
uint32_t leading_zero = 0;
#if defined(_WIN64)
_BitScanReverse64(&leading_zero, value);
Expand Down

0 comments on commit f1e2b0f

Please sign in to comment.