Disabling unaligned reads unless it's x86/x64 by default

This commit is contained in:
Rich Geldreich
2021-03-16 21:16:57 -04:00
parent b5334deb8a
commit a7994821e5

View File

@@ -30,8 +30,10 @@
#ifdef __EMSCRIPTEN__
// Can't use unaligned loads/stores with WebAssembly.
#define BASISD_USE_UNALIGNED_WORD_READS (0)
#else
#elif defined(_M_AMD64) || defined(_M_IX86) || defined(__i386__) || defined(__x86_64__)
#define BASISD_USE_UNALIGNED_WORD_READS (1)
#else
#define BASISD_USE_UNALIGNED_WORD_READS (0)
#endif
#endif