Revision 9015583caa1fcd2909eec9c1e146003e8a5b0c16 authored by Richard Petri on 28 October 2019, 11:48:34 UTC, committed by Ko- on 28 October 2019, 11:48:34 UTC
The refactoring removes a lot of identical duplicated code.

Avoiding the printf functions reduces code size *considerably*. This is may not
be necessary for platforms with larger flash sizes as in PQM4, however the
printf functions for RISC-V pull in a lot of code. There are the "nano" variants
of the libc, which are small enough. However, these don't support printing long
longs which we need for the cycle counts.

The code for unsigned long long printing uses a division by 10 trick from
hackers delight, since the compiler will otherwise use a generic 64-bit division
code, which is quite a bit larger.
1 parent e41de1a
History
File Mode Size
common
crypto_kem
crypto_sign
pqclean @ c39e85d
.gitignore -rw-r--r-- 1.7 KB
.gitmodules -rw-r--r-- 98 bytes
mupq.py -rw-r--r-- 21.5 KB

back to top