tomsfastmath: further size optimizations

sources list created via

    make clean ; make CC=gcc LDFLAGS="-Wl,--gc-sections" CFLAGS="-O -ffunction-sections"
    readelf -a pixiewps | grep '\.c' | awk '{print "./" $8 " \\"}' > tfm_used.txt

and some manual cleanups.
This commit is contained in:
rofl0r 2018-01-01 16:18:36 +00:00 committed by wiire-a
parent 2b229ba129
commit a07ebfb376
2 changed files with 1 additions and 3 deletions

View File

@ -20,7 +20,6 @@ TFM_SRCS = \
./fp_mul_2.c \ ./fp_mul_2.c \
./fp_mul_2d.c \ ./fp_mul_2d.c \
./fp_mul_comba.c \ ./fp_mul_comba.c \
./fp_mul_comba_small_set.c \
./fp_mul_d.c \ ./fp_mul_d.c \
./fp_mulmod.c \ ./fp_mulmod.c \
./fp_read_unsigned_bin.c \ ./fp_read_unsigned_bin.c \
@ -29,7 +28,6 @@ TFM_SRCS = \
./fp_set.c \ ./fp_set.c \
./fp_sqr.c \ ./fp_sqr.c \
./fp_sqr_comba_generic.c \ ./fp_sqr_comba_generic.c \
./fp_sqr_comba_small_set.c \
./fp_sub.c \ ./fp_sub.c \
./fp_to_unsigned_bin.c \ ./fp_to_unsigned_bin.c \
./fp_unsigned_bin_size.c \ ./fp_unsigned_bin_size.c \

View File

@ -44,7 +44,7 @@
Enable these if you are going to be doing a lot of small (<= 16 digit) multiplications say in ECC Enable these if you are going to be doing a lot of small (<= 16 digit) multiplications say in ECC
Or if you're on a 64-bit machine doing RSA as a 1024-bit integer == 16 digits ;-) Or if you're on a 64-bit machine doing RSA as a 1024-bit integer == 16 digits ;-)
*/ */
#define TFM_SMALL_SET /* #define TFM_SMALL_SET */
/* do we want huge code /* do we want huge code
Enable these if you are doing 20, 24, 28, 32, 48, 64 digit multiplications (useful for RSA) Enable these if you are doing 20, 24, 28, 32, 48, 64 digit multiplications (useful for RSA)