Date: Wed, 29 Jan 2003 19:46:22 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: djgpp AT delorie DOT com Message-Id: <2950-Wed29Jan2003194622+0200-eliz@is.elta.co.il> X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: <3E37FAD5.4113C82A@yahoo.com> (message from CBFalconer on Wed, 29 Jan 2003 16:42:54 GMT) Subject: Re: Power at compilation time References: <3E37420D DOT 922C5B16 AT yahoo DOT com> <3E37FAD5 DOT 4113C82A AT yahoo DOT com> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: CBFalconer > Newsgroups: comp.lang.c,comp.os.msdos.djgpp > Date: Wed, 29 Jan 2003 16:42:54 GMT > > > > > What version of gcc are you using, and what flags? With gcc 3.2 > > > on a x86 GNU/Linux system and -O2 optimization, this code > > > > > > #include > > > size_t foo (const char *s) { return strlen (s); } > > > > > > generates `repnz scasb' as the loop to scan for the '\0' > > > character. > > Not here. Btw, what happens with math functions such as sqrt and sin? Did they stop inlining them as well in GCC 3.x?