summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2020-12-21 22:59:49 -0500
committerJeffrey Walton <noloader@gmail.com>2020-12-21 22:59:49 -0500
commitc75ba84c5f9216746b2d13254853b39d49822d0e (patch)
tree090300a2d27624eef4305dd5b40904096240c134
parent9fa06cc091b2ee7c90eae839437b9cd710b14dab (diff)
downloadcryptopp-git-c75ba84c5f9216746b2d13254853b39d49822d0e.tar.gz
Update comments
-rw-r--r--ppc_power9.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/ppc_power9.cpp b/ppc_power9.cpp
index 8870023f..b7288f7c 100644
--- a/ppc_power9.cpp
+++ b/ppc_power9.cpp
@@ -64,8 +64,8 @@ bool CPU_ProbePower9()
result = false;
else
{
- // This is "darn r3, 0". It provides a conditioned 32-bit
- // word. It is available on both 32-bit and 64-bit.
+ // This is "darn r3, 0" from POWER9. We cannot use __builtin_darn
+ // and friends because Clang and IBM XL C/C++ does not offer them.
#if CRYPTOPP_BIG_ENDIAN
__asm__ __volatile__ (".byte 0x7c, 0x60, 0x05, 0xe6 \n" : : : "r3");
#else
@@ -114,8 +114,8 @@ bool CPU_ProbeDARN()
result = false;
else
{
- // This is "darn r3, 0". It provides a conditioned 32-bit
- // word. It is available on both 32-bit and 64-bit.
+ // This is "darn r3, 0" from POWER9. We cannot use __builtin_darn
+ // and friends because Clang and IBM XL C/C++ does not offer them.
#if CRYPTOPP_BIG_ENDIAN
__asm__ __volatile__ (".byte 0x7c, 0x60, 0x05, 0xe6 \n" : : : "r3");
#else