HackerTrans
TopNewTrendsCommentsPastAskShowJobs

Bit-permuting 16 u32s at once with AVX-512(bitmath.blogspot.com)

51 points·by dist1ll·2 lata temu·4 comments
bitmath.blogspot.com
Bit-permuting 16 u32s at once with AVX-512

http://bitmath.blogspot.com/2024/12/bit-permuting-16-u32s-at-once-with-avx.html

4 comments

metadat·2 lata temu
What's the purpose of the excessive quantity of leading underscores on every variable? Are they intended to communicate something special?
AnonGuy535·2 lata temu
None of the variables there have leading underscores in the name. If you mean the type __m512i, possibly to avoid conflicting with user-defined types in C, which has no namespacing to avoid such conflicts and sort of "softly reserves" names starting with underscores for non-user-defined names.
flohofwoe·2 lata temu
Double underscores are reserved by the C standard (https://devblogs.microsoft.com/oldnewthing/20230109-00/?p=10...), so it's a measure to avoid collisions with user-defined types.
mcyc·2 lata temu
It's just a convention for SIMD functions and types.