diff options
author | lloyd <[email protected]> | 2010-02-25 06:15:04 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-02-25 06:15:04 +0000 |
commit | be73bf2a3ff7ed61a7f58117cca00ab220ede52b (patch) | |
tree | fdd1e30a0c68da08bb567aa5933734c86ebb5f6c /src/block/block_cipher.h | |
parent | db1b57b499ad34a49adf4a2c53651d79c470b4f2 (diff) |
Set parallelism defaults.
Default unless specified is now 4.
For SIMD code, use 2x the number of blocks which are processed in
parallel using SIMD by that cipher. It may make sense to increase this to
4x or even more, further experimentation is necessary.
Diffstat (limited to 'src/block/block_cipher.h')
-rw-r--r-- | src/block/block_cipher.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/block/block_cipher.h b/src/block/block_cipher.h index b3e1b0e31..2d9198c58 100644 --- a/src/block/block_cipher.h +++ b/src/block/block_cipher.h @@ -26,7 +26,7 @@ class BOTAN_DLL BlockCipher : public SymmetricAlgorithm /** * @return the preferred parallelism of this cipher */ - virtual u32bit parallelism() const { return 1; } + virtual u32bit parallelism() const { return 4; } /** * Encrypt a block. |