summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornoloader <noloader@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2015-07-16 04:41:18 +0000
committernoloader <noloader@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2015-07-16 04:41:18 +0000
commit10677c70732b31bcfa6e242be6df51a615d73900 (patch)
tree7c1587bd6ee7e17e77b7bfa5201ab9996abb9ab8
parentc6083fd33279252a081d8f0e5b4ad7d19ed2e253 (diff)
downloadcryptopp-master.tar.gz
Cleared Cygwin i386 crash at -O3 due to unaligned data access and vectorizationHEADmaster
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@591 57ff6487-cd31-0410-9ec3-f628ee90f5f0
-rw-r--r--config.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/config.h b/config.h
index d3bd692..e359729 100644
--- a/config.h
+++ b/config.h
@@ -33,6 +33,11 @@
// define this to retain (as much as possible) old deprecated function and class names
// #define CRYPTOPP_MAINTAIN_BACKWARDS_COMPATIBILITY
+// Cygwin requires aligned data acess. It vectorizes word32's on i386, too.
+#if defined(__CYGWIN__) || defined(__CYGWIN32__)
+# define CRYPTOPP_NO_UNALIGNED_DATA_ACCESS
+#endif
+
#define GZIP_OS_CODE 0
// Try this if your CPU has 256K internal cache or a slow multiply instruction