Gilles Peskine d6e3f46daa Base64 encoding: use ranges instead of tables
Instead of doing constant-flow table lookup, which requires 64 memory loads
for each lookup into a 64-entry table, do a range-based calculation, which
requires more CPU instructions per range but there are only 5 ranges.

I expect a significant performance gain (although smaller than for decoding
since the encoding table is half the size), but I haven't measured. Code
size is slightly smaller.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2021-10-25 21:22:43 +02:00
..
2021-08-03 14:01:51 +01:00
2021-09-30 15:51:05 +02:00
2021-06-07 21:42:15 +02:00
2021-06-25 14:59:15 +01:00
2021-08-03 13:39:57 +01:00
2021-07-02 14:59:26 +01:00
2021-08-03 13:39:57 +01:00
2021-04-07 12:45:35 +01:00
2021-03-29 14:20:18 +01:00
2021-04-07 12:45:35 +01:00
2021-03-29 14:20:18 +01:00
2021-04-07 12:45:35 +01:00
2021-04-07 12:45:35 +01:00
2021-08-03 13:39:57 +01:00
2021-04-15 11:19:47 +01:00
2021-04-15 11:19:47 +01:00
2021-09-13 12:54:46 +02:00
2020-11-25 13:10:50 +01:00
2020-11-25 13:10:50 +01:00
2021-08-03 13:39:57 +01:00
2021-08-03 13:39:57 +01:00
2021-08-03 13:39:57 +01:00
2021-08-03 14:08:26 +01:00
2021-08-20 15:56:22 +01:00
2021-08-23 12:49:14 +01:00
2021-08-23 11:45:36 +01:00
2021-04-15 11:19:47 +01:00
2021-04-15 11:19:47 +01:00
2021-04-15 11:19:47 +01:00