Home GnuPG

gost28147: inline gost_val function to speed up code

Description

gost28147: inline gost_val function to speed up code

* cipher/gost28147.c (gost_val): mark function as inline

This improves the speed of the cipher
Cipher:
GOST28147 | nanosecs/byte mebibytes/sec cycles/byte
Before:

ECB enc |     18.89 ns/B     50.48 MiB/s         - c/B
ECB dec |     18.71 ns/B     50.96 MiB/s         - c/B

After:

ECB enc |     17.83 ns/B     53.48 MiB/s         - c/B
ECB dec |     17.38 ns/B     54.89 MiB/s         - c/B
  • Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>

Details

Provenance
lumagAuthored on Nov 12 2019, 2:50 PM
jukiviliCommitted on Nov 21 2019, 4:59 PM
Parents
rCf9894240bed3: gost28147: do not use GOST28147_CONTEXT outside of GOST 28147 calculation
Branches
Unknown
Tags
Unknown