From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 63275 invoked by alias); 28 May 2015 08:40:51 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 63262 invoked by uid 89); 28 May 2015 08:40:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,MALFORMED_FREEMAIL,MISSING_HEADERS,SPF_NEUTRAL autolearn=no version=3.3.2 X-HELO: popelka.ms.mff.cuni.cz Date: Thu, 28 May 2015 14:40:00 -0000 From: =?utf-8?B?T25kxZllaiBCw61sa2E=?= Cc: libc-alpha@sourceware.org Subject: [PATCH] Enable unaligned loads on x86-64. Message-ID: <20150528084040.GA27945@domone> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-SW-Source: 2015-05/txt/msg00753.txt.bz2 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 */