Skip to content

Commit

Permalink
nbody_util: fix build for non-x86 with mm_malloc
Browse files Browse the repository at this point in the history
Signed-off-by: Steven Noonan <[email protected]>
  • Loading branch information
tycho committed Aug 11, 2024
1 parent 9abfe21 commit 3150279
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/nbody_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,17 @@
#ifdef _WIN32
#include <windows.h>
#else
#if !defined(__aarch64__) && !defined(_M_ARM64)
#include <mm_malloc.h>
#endif
#include <math.h>
#include <stdio.h>
#include <termios.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/select.h>
#endif
#if defined(__arch64__) || defined(_M_ARM64)
#include <stdlib.h>
#if defined(__i386__) || defined(__x86_64__) || defined(_M_IX86) || defined(_M_X64)
#include <mm_malloc.h>
#else
#define _mm_malloc(x,y) malloc(x)
#define _mm_free free
#endif
Expand Down

0 comments on commit 3150279

Please sign in to comment.