Thread (19 messages) flat view 19 messages, 7 authors, 2007-12-09

Re: [PATCH] Fake NUMA emulation for PowerPC

From: Balbir Singh <hidden>
Date: 2007-12-07 21:43:52
Also in: lkml

Balbir Singh wrote:
Geert Uytterhoeven wrote:
quoted
On Sat, 8 Dec 2007, Balbir Singh wrote:
quoted
+	if (strstr(p, "fake="))
+		cmdline = p + 5;	/* 5 is faster than strlen("fake=") */
Really? My gcc is smart enough to replace the `strlen("fake=")' by 5, even
without -O.
Thanks for pointing that out, but I am surprised that a compiler would
interpret library routines like strlen.
I just tested it and it turns out that you are right. I'll go hunt to
see where gcc gets its magic powers from.
quoted
With kind regards,

Geert Uytterhoeven
Software Architect
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help