Skip to content

Commit

Permalink
fix: Do not use SSE on Apple Silicon (not supported)
Browse files Browse the repository at this point in the history
  • Loading branch information
sindre-nistad committed Jan 16, 2024
1 parent fd25399 commit f57dfcc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/nrlib/random/dSFMT.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,13 @@ extern "C" {
#include <assert.h>
#include <stddef.h>

#if defined(__aarch64__) || defined(__arm64__)
// The existing code does not include instructions for SIMD on ARM (neon)
#else
// ------ NR: ------
// We only support computers that have SSE2.
#define HAVE_SSE2
#endif
#define DSFMT_MEXP 19937
#if defined(_MSC_VER) && _MSC_VER >= 1600
// Included stdint.h to prevent warning when compiling dSFMT on VS2010 and newer
Expand Down

0 comments on commit f57dfcc

Please sign in to comment.