Of possible interest: I have ported your implementation to C++11. All the relevant code is here in this one include file. Specifically it leverages iterators, C++11’s std::bitset, and RAII (nearly all allocations are on the stack). No benchmarks yet, and I am still tweaking the hexify function to match the output of your C99 code – but I thought someone might want to see it. Feedback is of course welcome!
Of possible interest: I have ported your implementation to C++11. All the relevant code is here in this one include file. Specifically it leverages iterators, C++11’s
std::bitset
, and RAII (nearly all allocations are on the stack). No benchmarks yet, and I am still tweaking thehexify
function to match the output of your C99 code – but I thought someone might want to see it. Feedback is of course welcome!