summaryrefslogtreecommitdiff
path: root/3.c
diff options
context:
space:
mode:
authorn <@>2023-12-13 17:23:56 +0200
committern <@>2023-12-13 17:23:56 +0200
commit49faa6e209a23df181445bd32d3d72c1debd77e8 (patch)
tree2a67cb475754d10c19afef8b426cddef05bd9cee /3.c
parent38e82ef3171ceca9e63491d99d9ae5ccc55ca996 (diff)
__builtin
Diffstat (limited to '3.c')
-rw-r--r--3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/3.c b/3.c
index 80b24b35..3e376095 100644
--- a/3.c
+++ b/3.c
@@ -4,7 +4,7 @@ NI A1(inv,x=mut(x);L*p=xL;i(xn*xW+31>>5<<2,*p++^=-1)x)
S A3(___f,/*010*/U i=!y;I(i,y=io(z,0))U n=zn;W(i<n,y=y(x2(y,ii(z,i++)));B(!y))y)
S A3(dexf,/*010*/A u=las(zR);I(y,y(0))u)
- L addfB(O V*a,U n)_(O W*p=a;U r=0;i(n>>6,r+=__builtin_popcountll(*p++))n&=63;n?r+__builtin_popcountll(*p&~(-1ll<<n)):r)
+ L addfB(O V*a,U n)_(O W*p=a;U r=0;i(n>>6,r+=POP(*p++))n&=63;n?r+POP(*p&~(-1ll<<n)):r)
S L addfG(O V*a,U n)_(O G*p=a;L r=0;i(n,r+=*p++)r)
S L addfH(O V*a,U n)_(O H*p=a;L r=0;i(n,r+=*p++)r)
S L addfI(O V*a,U n)_(O I*p=a;L r=0;i(n,r+=*p++)r)