HackerTrans
TopNewTrendsCommentsPastAskShowJobs

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

51 points·by dist1ll·vor 2 Jahren·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·vor 2 Jahren
What's the purpose of the excessive quantity of leading underscores on every variable? Are they intended to communicate something special?
AnonGuy535·vor 2 Jahren
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·vor 2 Jahren
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·vor 2 Jahren
It's just a convention for SIMD functions and types.