www.delorie.com/archives/browse.cgi | search |
> From: CBFalconer <cbfalconer AT yahoo DOT com> > 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 <string.h> > > > 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?
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |