Skip to content

Commit

Permalink
Move macro inside of PSAPI_NAMESPACE_BEGIN block
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilDohne committed Mar 7, 2024
1 parent cd5da3e commit 6bc85ba
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions PhotoshopAPI/src/Util/Endian/EndianByteSwapArr.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,6 @@

#include "Macros.h"
#include "Profiling/Perf/Instrumentor.h"

// Disable AVX2 at runtime for mac systems and replace their implementation
#ifdef __AVX2__
#include "AVX2EndianByteSwap.h"
#define AVX2_ENABLED 1
#else
PSAPI_LOG_WARNING("AVX2", "Detected no support for AVX2 on the system and falling back to slower non-simd implementation");
#endif

#include "EndianByteSwap.h"

#include <algorithm>
Expand All @@ -30,6 +21,15 @@

PSAPI_NAMESPACE_BEGIN

// Disable AVX2 at runtime for mac systems and replace their implementation
#ifdef __AVX2__
#include "AVX2EndianByteSwap.h"
#define AVX2_ENABLED 1
#else
PSAPI_LOG_WARNING("AVX2", "Detected no support for AVX2 on the system and falling back to slower non-simd implementation");
#endif


constexpr bool is_little_endian = (std::endian::native == std::endian::little);


Expand Down

0 comments on commit 6bc85ba

Please # to comment.