Builtins & intrinsics
nemequ opened this issue · 0 comments
nemequ commented
Most compilers implement small, high-performance "intrinsics" (MSVC) or "builtins" (GCC) in their compilers.
Unfortunately, there are basically two sets; GCC's and MSVC's, and compilers generally only implement one. It would be great to have implementations of whatever we can, using either the current compiler's intrinsics or a portable fallback. Bit Twiddling Hacks has some code which could be useful for some of the bit twiddling builtins.