This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Enable unaligned loads on x86-64.


Hi, as I mentioned before in header optimization thread its now disabled
on x86-64 but on for x86.

So just enable that by copying generic bits/string.h header there.

OK to commit?

	* sysdeps/x86_64/bits/string.h: New file.

diff --git a/sysdeps/x86_64/bits/string.h b/sysdeps/x86_64/bits/string.h
new file mode 100644
index 0000000..ec64d63
--- /dev/null
+++ b/sysdeps/x86_64/bits/string.h
@@ -0,0 +1,14 @@
+/* This file should provide inline versions of string functions.
+
+   Surround GCC-specific parts with #ifdef __GNUC__, and use `__extern_inline'.
+
+   This file should define __STRING_INLINES if functions are actually defined
+   as inlines.  */
+
+#ifndef _BITS_STRING_H
+#define _BITS_STRING_H	1
+
+/* On x86-64 we can access unaligned multi-byte variables.  */
+#define _STRING_ARCH_unaligned   1
+
+#endif /* bits/string.h */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]