News for hackers. Stuff that matters.
Re:Base64 encoding and decoding at almost the speed of a mem... by mytailorisrich on Wednesday November 06, 2019 @03:39AM (#21460706)
> However, base64 has weird mappings that take some processing to undo in SIMD – can't use lookup tables and need to regroup bits from 8 bit to 6 bit width. That does take a lot of cycles without specialized bit manipulation instructions.

Base64 uses lookup tables and the bit manipulations required are standard shifts and 'and', which are basic, fast instructions on any CPU. That seems exactly what they do here with an efficient use of AVX512 to make it fast(er).

There are no comments on this comment yet.