public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: "Ondřej Bílka" <neleai@seznam.cz>
Cc: libc-alpha@sourceware.org
Subject: [PATCH] Enable unaligned loads on x86-64.
Date: Thu, 28 May 2015 14:40:00 -0000	[thread overview]
Message-ID: <20150528084040.GA27945@domone> (raw)

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 */

             reply	other threads:[~2015-05-28  8:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-28 14:40 Ondřej Bílka [this message]
2015-05-28 17:21 ` Richard Henderson
2015-05-28 17:28   ` Ondřej Bílka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150528084040.GA27945@domone \
    --to=neleai@seznam.cz \
    --cc=libc-alpha@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).