Gilles Peskine 3b3b34f608 Replace some macros by functions
Replace some frequently-used macros by inline functions: instead of
calling MOD_{ADD,SUB,MUL} after the mbedtls_mpi_{add,sub,mul}_mpi,
call a function mbedtls_mpi_xxx_mod that does the same.

In the baremetal config, with "gcc -Os -mthumb -mcpu=cortex-m0plus",
ecp.o goes down from 13878 bytes to 12234.

No noticeable performance change for benchmarks on x86_64 with either
"gcc -O2" or "gcc -Os".
2019-07-18 21:08:27 +02:00
..
2019-02-19 17:59:00 +00:00
2019-04-02 10:07:28 -07:00
2019-06-26 12:46:53 +01:00
2019-02-19 17:59:00 +00:00
2019-02-19 17:59:00 +00:00
2019-07-18 21:08:27 +02:00
2019-04-30 16:47:36 +01:00
2019-06-24 15:45:09 +02:00
2019-03-11 16:46:20 +00:00
2015-09-04 14:21:07 +02:00
2019-02-05 05:09:05 -05:00
2019-02-19 17:59:00 +00:00
2019-02-19 17:59:00 +00:00