WalterKruger
WalterKruger
I found a few more missing features: - Comparators don't read the state/fullness of most blocks. (Excluding Composter and Chiseled Bookshelf) - Hoppers don't collect item entities. - Adding/Removing a...
I was looking into this and it seems like it is faster to broadcast it to the MSB using a multiply: ```asm bitReverse8_mulmovmsk: mov eax, edi movabs rcx, -9205322385119247871 imul...
> Is this better then using pext? > I would think staying in GPR's would be more efficient... It seems strange to me as well. But I ran a micro-benchmark...
>`-x` might be trickier but it should be doable as `not(x) + 1` (the 1 can be done as allones+kshift) It should be cheaper to calculate it as `~(x -...
The assembly snippet is for a baseline `x86-64-v1` target but it seems like it is beneficial for all targets, at least without avx512, due to how long the chain is...
Most AVX512 target benefits from dedicated 16 => 8-bit truncation, but this is only might be competitive if the vector can be width extended to a larger size. ```asm multiplyBy10:...
~I was looking into a similar issue when comparing an unsigned 64-bit value for greater-than a constant and the method I came up with might be the fastest if the...
It turns out you can avoid the constant by subtracting in the opposite order: MSB a NOT set --> `((b - a) & ~b) >> 63` MSB a SET -->...
> What we need is a comparison result that leaves the entire element set to -1 (true) or 0 (false) - and we don't have a ASHR vXi64 on SSE/AVX...
> It seems more expensive. If you want signed methods, its faster to use the direct bitwise expression for signed `a > b`: `(~a & b) | (~(a ^ b)...