tls: remove last int16 local variables in pstm code
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 15 Jul 2017 15:19:38 +0000 (17:19 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 15 Jul 2017 15:19:38 +0000 (17:19 +0200)
function                                             old     new   delta
pstm_mul_comba                                       439     447      +8
pstm_sqr_comba                                       475     478      +3
pstm_montgomery_reduce                               399     381     -18
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 11/-18)             Total: -7 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/tls_pstm.c
networking/tls_pstm_montgomery_reduce.c
networking/tls_pstm_mul_comba.c
networking/tls_pstm_sqr_comba.c

index bd5bae0b7abef39804567b223611e5f6b63b1169..e12e6c9d4f6c686d6133723770f0c0ddcc0e0ada 100644 (file)
@@ -2127,7 +2127,7 @@ int32 pstm_invmod(psPool_t *pool, pstm_int *a, pstm_int *b, pstm_int *c)
 {
        pstm_int        x, y, u, v, B, D;
        int32           res;
-       uint16          neg, sanity;
+       int             neg, sanity; //bbox: was uint16
 
        /* 2. [modified] b must be odd   */
        if (pstm_iseven (b) == 1) {
index dc2fe0a482cee37532f70c971cd760121490060f..3391755e16edf87880c7c8a0287c5a213fae5874 100644 (file)
@@ -345,7 +345,7 @@ int32 pstm_montgomery_reduce(psPool_t *pool, pstm_int *a, pstm_int *m,
 {
        pstm_digit      *c, *_c, *tmpm, mu;
        int32           oldused, x, y;
-       int16           pa;
+       int             pa; //bbox: was int16
 
        pa = m->used;
        if (pa > a->alloc) {
index 845ab95e2afaeefc7201b1eee5e77a87b712f786..6ba152bc1e3b7a0b02cf6dcf6ca8093a9f5d0c3c 100644 (file)
@@ -229,7 +229,7 @@ asm(                               \
 static int32 pstm_mul_comba_gen(psPool_t *pool, pstm_int *A, pstm_int *B,
                        pstm_int *C, pstm_digit *paD, uint32 paDlen)
 {
-       int16           paDfail, pa;
+       int             paDfail, pa; //bbox: was int16
        int32       ix, iy, iz, tx, ty;
        pstm_digit      c0, c1, c2, *tmpx, *tmpy, *dst;
 
index 4fcfcf91a10b8535146928bc2f9fc6eade5ba594..d5c74d2f051cdb731deb6ee592aadccd343d5352 100644 (file)
@@ -447,7 +447,7 @@ asm(                               \
 static int32 pstm_sqr_comba_gen(psPool_t *pool, pstm_int *A, pstm_int *B,
                        pstm_digit *paD, uint32 paDlen)
 {
-       int16           paDfail, pa;
+       int             paDfail, pa; //bbox: was int16
        int32       ix, iz;
        pstm_digit  c0, c1, c2, *dst;
 #ifdef PSTM_ISO