summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2023-04-07 08:57:46 +0000
committerNiels Möller <nisse@lysator.liu.se>2023-04-07 08:57:46 +0000
commit76ad2fa6fe68de4361aabb1a596fa3332050d5c4 (patch)
tree37b50df93159d59f07a267f6000e8c3dd3b97dd5
parent059fb63d4de35c2681feb32369c1719a0277e891 (diff)
parentb6ec60fa62533ce5c5356d63e23cc0864ea10cd5 (diff)
downloadnettle-76ad2fa6fe68de4361aabb1a596fa3332050d5c4.tar.gz
Merge branch 'x86_ghash' into 'master'
Use Test instruction instead of And to check remaining single block See merge request nettle/nettle!59
-rw-r--r--x86_64/pclmul/ghash-update.asm2
1 files changed, 1 insertions, 1 deletions
diff --git a/x86_64/pclmul/ghash-update.asm b/x86_64/pclmul/ghash-update.asm
index 7764ef48..917a1427 100644
--- a/x86_64/pclmul/ghash-update.asm
+++ b/x86_64/pclmul/ghash-update.asm
@@ -141,7 +141,7 @@ PROLOGUE(_nettle_ghash_update)
jnz .Loop
.L1_block:
- and $1, BLOCKS
+ test $1, BLOCKS
jz .Ldone
movups (DATA), M