Skip to content

Commit

Permalink
Add initial support for ARM64
Browse files Browse the repository at this point in the history
  • Loading branch information
starg2 committed Oct 15, 2024
1 parent ce50beb commit f6bb872
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion timidity/optcode.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
#include "common.h"

const char *arch_string =
#ifdef IX64CPU
#ifdef ARM64CPU
"[ARM64]"
#elif defined(IX64CPU)
#if USE_X64_EXT_INTRIN == 10
"[x64 AVX512]"
#elif USE_X64_EXT_INTRIN == 9
Expand Down
4 changes: 4 additions & 0 deletions timidity/optcode.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
#undef IX64CPU
#endif

#if defined(_M_ARM64) || defined(__aarch64__)
#define ARM64CPU 1
#endif

/* optimizing mode */
/* 0: none */
/* 1: x86 asm */
Expand Down
4 changes: 2 additions & 2 deletions timidity/sysdep.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
#define ARMCPU 1
#endif

#if defined(__aarch64__)
#if defined(_M_ARM64) || defined(__aarch64__)
#undef ARMCPU
#define ARM64CPU 1
#endif
Expand Down Expand Up @@ -269,7 +269,7 @@ typedef double LDBL_T;
/* pointer size is not long in WIN64 and x86_64 */
#if (defined(SIZEOF_POINTER) && SIZEOF_POINTER == 8) || \
(defined(__SIZEOF_POINTER__) && __SIZEOF_POINTER__ == 8) || \
(defined(__W32__) && defined(_AMD64_))
defined(_WIN64)
/* 64bit arch */
typedef int64 ptr_size_t;
typedef uint64 u_ptr_size_t;
Expand Down

0 comments on commit f6bb872

Please sign in to comment.