Skip to content

Commit

Permalink
increase max atomic size
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash committed Sep 15, 2021
1 parent 1c3c4d8 commit 873d3ec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/julia.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,12 @@
// processor family and compiler typically supports without a lock
// (assumed to be at least a pointer size). Since C is bad at handling 16-byte
// types, we currently use 8 here as the default.
#ifdef _P64
#define MAX_ATOMIC_SIZE 16
#else
#define MAX_ATOMIC_SIZE 8
#define MAX_POINTERATOMIC_SIZE 8
#endif
#define MAX_POINTERATOMIC_SIZE 16

#ifdef _P64
#define NWORDS(sz) (((sz)+7)>>3)
Expand Down

0 comments on commit 873d3ec

Please sign in to comment.