Evine
33 posts


Twitchcon was a blast, met and talked with so many wonderful people. + I got this wonderful, Drawn at the event, Laimu commission from @Finnautica. #laimuart

English
Evine retweetou
Evine retweetou
Evine retweetou

@Dylan1Kenobi @gala_con It was such a blast meeting you and @cyrilthewolf, reminiscing on some of yours and Cyril collabs with @replacer808 and @TAPSFTW was just good grooves.
I put on some good old @UncleTarby music, kinda hoping that someone would recognize it, and you were there in an instant.
English
Evine retweetou
Evine retweetou

@ArvidGerstmann With some "Bit Scan Forward" compiler intrinsic
int getMask(uint32_t mask) {
if(mask == 0) return -1;
return __builtin_ctz(mask);
}
English

How could I further optimize something like this?
for (int i = 0; i < len; ++i)
if ((mask & (0x1 << i))
return arr[i];
godbolt.org/g/3ighym
English

@JamesWidman If the spec now changes to the compilers then I think it's a great idea to enforce ordering. This C reordering is quite deceptive.
English

@JamesWidman Reading the standard now, and I agree with you. It seems Clang isn't being compliant here.
English

@JamesWidman Hmm, I'm clearly seeing it going the other way with clang glot.io/snippets/erp2n…
English

@JamesWidman This proposal does however make the sequence point rules even more complicated.
English

@JamesWidman And Clang C already reorders the expressions to match struct declaration order.
English

@JamesWidman I do like how it enforces sequence points between expressions. In C (I assume) there is no sequence points.
English












