summaryrefslogtreecommitdiff
path: root/config_asm.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2021-05-23 05:17:08 -0400
committerJeffrey Walton <noloader@gmail.com>2021-05-23 05:17:08 -0400
commit01d374afd1514cf2d2898582ed5592a498096856 (patch)
tree8338772be7225f2235baee9fe9b25a53bfb3dd4e /config_asm.h
parent1fa769a2eeed3f0d76c41e00f491ae37aa961fc4 (diff)
downloadcryptopp-git-01d374afd1514cf2d2898582ed5592a498096856.tar.gz
Move UINT64_CAST to config_asm.h
Diffstat (limited to 'config_asm.h')
-rw-r--r--config_asm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/config_asm.h b/config_asm.h
index e2230d64..06e7d68b 100644
--- a/config_asm.h
+++ b/config_asm.h
@@ -378,6 +378,10 @@
# endif
#endif
+// Clang intrinsic casts, http://bugs.llvm.org/show_bug.cgi?id=20670
+#define UINT64_CAST(x) ((uint64_t *)(void *)(x))
+#define CONST_UINT64_CAST(x) ((const uint64_t *)(const void *)(x))
+
#endif // CRYPTOPP_DISABLE_ASM
#endif // ARM32, ARM64