Thread (27 messages) 27 messages, 9 authors, 2012-08-08

Re: [PATCH] ACPI: replace strlen("string") with sizeof("string") -1

flat view

From: richard -rw- weinberger <hidden>
Date: 2012-07-30 14:41:53
Also in: linux-acpi, lkml

On Mon, Jul 30, 2012 at 4:26 PM, Ian Campbell [off-list ref] wrote:
I thought gcc optimised strlen("string literal") into a compile time
constant too. It does in a little userspace test I just wrote, but I
didn't look at its behaviour with the kernel's strlen.
It depends whether you use the built-in strlen() or not.
AFAIK the kernel does not use the built-in variant.

-- 
Thanks,
//richard
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help