Messages in this thread | | | Date | Tue, 29 Sep 2009 14:53:00 +0200 | From | Arjan van de Ven <> | Subject | Re: [PATCH] x86: Use __builtin_memset and __builtin_memcpy for memset/memcpy |
| |
On Tue, 29 Sep 2009 14:44:06 +0200 Arnd Bergmann <arnd@arndb.de> wrote:
> > > > The patch looks good, but is there a reason to keep it architecture > specific? I would guess that the same logic applies to all > architectures with gcc-4.x and could be put into > include/linux/compiler-gcc4.h.
there are some requirements on the architecture for this to work.... and as always with compiler things, the tradeoffs and how well it works will vary per architecture.
If the architectures in large majority make this switch we could move it generic... but it's a bit early for that.
-- Arjan van de Ven Intel Open Source Technology Centre For development, discussion and tips for power savings, visit http://www.lesswatts.org
| |