Skip to content

Commit

Permalink
reinstate fatype
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryHRich committed Jan 5, 2025
1 parent 748c54c commit a274583
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions jsrc/ja.h
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,7 @@

#define fa(x) fajt(jt,(x)) // when the block will usually NOT be deleted
#define falikely(x) fa(x) // when the block will usually be deleted (not used yet)
#define fatype(x,tt) fa(x) // scaf
//obsolete {if(likely(AC(x)<=ACUC1)){jtfamf(jt,x,tt);}else{if(likely(!ACISPERM(AC(x)))){if(unlikely(__atomic_fetch_sub(&AC(x),1,__ATOMIC_ACQ_REL)<2))jtfamf(jt,x,tt);}}} // when type is known (i. e. NAME)
#define fatype(x,tt) {if((x)==0)SEGFAULT; if(likely(AC(x)<=ACUC1)){jtfamf(jt,x,tt);}else{if(likely(!ACISPERM(AC(x)))){if(unlikely(__atomic_fetch_sub(&AC(x),1,__ATOMIC_ACQ_REL)<2))jtfamf(jt,x,tt);}}} // scaf when type is known (i. e. NAME)
#define fanamedacv(x) {I Zc=AC(x); if(likely(!ACISPERM(Zc)))if(unlikely(__atomic_fetch_sub(&AC(x),1,__ATOMIC_ACQ_REL)<2))jtfamf(jt,x,AT(x));} // block is known to be ACV, recursive, AC>0, and almost always AC>1
// when x is known to be valid and usecount has gone to 0
#define fanano0(x) faaction(jt,(x),;)
Expand Down

0 comments on commit a274583

Please sign in to comment.