Skip to content

Commit

Permalink
Added arch definition
Browse files Browse the repository at this point in the history
  • Loading branch information
pzaino committed Nov 10, 2023
1 parent 3affcf8 commit fb35b69
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,20 +90,28 @@
"ALWAYSINLINE",
"COMPTYPE",
"cppcheck",
"crayc",
"cvector",
"DATAALIGN",
"datastructures",
"IBMC",
"intelc",
"ivector",
"LDFLAGS",
"LOGPRIORITY",
"MAJRELEASE",
"mallopt",
"Michail",
"MINRELEASE",
"MONOBOUND",
"msvc",
"NOLOCKING",
"norcroftc",
"PATRELEASE",
"RACECOND",
"rndstr",
"safewipe",
"TINYC",
"valgrind",
"VECTDATASIZE",
"VECTEMPTY",
Expand Down
4 changes: 4 additions & 0 deletions src/zvector_checks.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@
#endif

// Try to determine CPU Architecture:
#define ARM32 0
#define ARM64 1
#define x86_64 2
#define unknown -1
#if defined(__aarch64__)
# define CPU_TYPE ARM64
# define Arch64
Expand Down

0 comments on commit fb35b69

Please sign in to comment.