From f763bf3da6e3b1ac6f2df0da564045dcd8b2b343 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Thu, 21 Sep 2017 12:08:54 -0400 Subject: [PATCH] Updated comments --- rijndael-simd.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rijndael-simd.cpp b/rijndael-simd.cpp index df979841..6fba8aac 100644 --- a/rijndael-simd.cpp +++ b/rijndael-simd.cpp @@ -14,7 +14,12 @@ // AltiVec and Power8 code based on http://github.com/noloader/AES-Intrinsics and // http://www.ibm.com/developerworks/library/se-power8-in-core-cryptography/ // The IBM documentation absolutely sucks. Thanks to Andy Polyakov, Paul R and -// Trudeaun for answering questions and filing the gaps in the IBM documentation. +// Trudeaun for answering questions and filling the gaps in the IBM documentation. +// +// For Power8 do not remove the casts. It causes a 0.3 to 0.6 cpb drop in performance. +// uint8x16_p8 r1 = (uint8x16_p8)VectorLoadKey((const uint8_t*)skptr); +// uint8x16_p8 r4 = (uint8x16_p8)VectorLoadKey((const uint8_t*)s_rcon[0]); +// uint8x16_p8 r5 = (uint8x16_p8)VectorLoadKey((const uint8_t*)s_mask); #include "pch.h" #include "config.h"