diff options
author | Andy Polyakov <appro@openssl.org> | 2008-12-22 14:10:42 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2008-12-22 14:10:42 +0000 |
commit | 9f03d0fc04805d22922be8a89a11a32054aa7e1d (patch) | |
tree | 1b60a7fcd17081844ed1d7d64412469354cf7897 /crypto/des/fcrypt_b.c | |
parent | 2140659b00af2e6e392c859cfc392c68d0fe0a10 (diff) |
Optimize #undef DES_UNROLL for size.
Diffstat (limited to 'crypto/des/fcrypt_b.c')
-rw-r--r-- | crypto/des/fcrypt_b.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/crypto/des/fcrypt_b.c b/crypto/des/fcrypt_b.c index 1390138787..8822816938 100644 --- a/crypto/des/fcrypt_b.c +++ b/crypto/des/fcrypt_b.c @@ -100,12 +100,10 @@ void fcrypt_body(DES_LONG *out, DES_key_schedule *ks, DES_LONG Eswap0, #ifndef DES_UNROLL register int i; - for (i=0; i<32; i+=8) + for (i=0; i<32; i+=4) { D_ENCRYPT(l,r,i+0); /* 1 */ D_ENCRYPT(r,l,i+2); /* 2 */ - D_ENCRYPT(l,r,i+4); /* 1 */ - D_ENCRYPT(r,l,i+6); /* 2 */ } #else D_ENCRYPT(l,r, 0); /* 1 */ |