crypto: annotate xts_tweak_encdec as inlineable
commitaa895bd439341a8f218d8f1a3d21359ba058c13f
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 9 Oct 2018 09:50:43 +0000 (9 10:50 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Wed, 24 Oct 2018 18:03:37 +0000 (24 19:03 +0100)
tree9b6effc81a929dc923f7ada8011d9ac4a1151f0b
parent7dac0dd67426753646df0c23c819609b9e704f59
crypto: annotate xts_tweak_encdec as inlineable

Encouraging the compiler to inline xts_tweak_encdec increases the
performance for xts-aes-128 when built with gcrypt:

  Encrypt: 545 MB/s -> 580 MB/s
  Decrypt: 568 MB/s -> 602 MB/s

Reviewed-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
crypto/xts.c