public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Enable unaligned loads on x86-64.
@ 2015-05-28 14:40 Ondřej Bílka
  2015-05-28 17:21 ` Richard Henderson
  0 siblings, 1 reply; 3+ messages in thread
From: Ondřej Bílka @ 2015-05-28 14:40 UTC (permalink / raw)
  Cc: libc-alpha

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Enable unaligned loads on x86-64.
  2015-05-28 14:40 [PATCH] Enable unaligned loads on x86-64 Ondřej Bílka
@ 2015-05-28 17:21 ` Richard Henderson
  2015-05-28 17:28   ` Ondřej Bílka
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Henderson @ 2015-05-28 17:21 UTC (permalink / raw)
  To: Ondřej Bílka; +Cc: libc-alpha

On 05/28/2015 01:40 AM, Ondřej Bílka wrote:
> 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?

Um... x86 is the shared directory for x86_64 and i386.
Is the existing header really not being found?


r~

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Enable unaligned loads on x86-64.
  2015-05-28 17:21 ` Richard Henderson
@ 2015-05-28 17:28   ` Ondřej Bílka
  0 siblings, 0 replies; 3+ messages in thread
From: Ondřej Bílka @ 2015-05-28 17:28 UTC (permalink / raw)
  To: Richard Henderson; +Cc: libc-alpha

On Thu, May 28, 2015 at 09:43:31AM -0700, Richard Henderson wrote:
> On 05/28/2015 01:40 AM, Ondřej Bílka wrote:
> > 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?
> 
> Um... x86 is the shared directory for x86_64 and i386.
> Is the existing header really not being found?
> 
Didn't see it. Now there is problem that provided assembly versions were
optimized for 486 and have terible performance in lines of current
strcmp builtin.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-05-28 16:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-28 14:40 [PATCH] Enable unaligned loads on x86-64 Ondřej Bílka
2015-05-28 17:21 ` Richard Henderson
2015-05-28 17:28   ` Ondřej Bílka

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).