Here's a followup to a book example. Creating a hexadecimal string just begs for SIMD implementations. Here are Intel SSE and ARM NEON implementations, SSE and NEON C intrinsic implementations, x86-64 and AArch64 implementations, and an ordinary C implementation for comparison. Windows, macOS, and Linux.
https://github.com/atribelli/hexstr
Intel SSE and ARM NEON hexadecimal string
Re: Intel SSE and ARM NEON hexadecimal string
I have added 32-bit Arm v7-A implementations.
I have also fixed SSE under Linux and added an AVX implementation.
https://github.com/atribelli/hexstr