Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/public-domain/xz/include Use unaligned access if th...
details: https://anonhg.NetBSD.org/src/rev/20f13255f80d
branches: trunk
changeset: 337538:20f13255f80d
user: joerg <joerg%NetBSD.org@localhost>
date: Sat Apr 18 16:59:05 2015 +0000
description:
Use unaligned access if the platform supports it.
diffstat:
external/public-domain/xz/include/config.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (16 lines):
diff -r 037ccb5048df -r 20f13255f80d external/public-domain/xz/include/config.h
--- a/external/public-domain/xz/include/config.h Sat Apr 18 16:58:31 2015 +0000
+++ b/external/public-domain/xz/include/config.h Sat Apr 18 16:59:05 2015 +0000
@@ -359,9 +359,9 @@
/* Define to 1 if the system supports fast unaligned access to 16-bit and
32-bit integers. */
-#ifndef __NetBSD__
-/* Not all archs support this */
-#define TUKLIB_FAST_UNALIGNED_ACCESS 1
+#include <machine/types.h>
+#ifdef __NO_STRICT_ALIGNMENT
+# define TUKLIB_FAST_UNALIGNED_ACCESS 1
#endif
/* Define to 1 if the amount of physical memory can be detected with
Home |
Main Index |
Thread Index |
Old Index