Skip to content
Prev 12449 / 63461 Next

optim-Bug (PR#6720)

I think S_alloc is little used (at least in R), but I have altered it to
use memset in R-devel. As I understand it all decent compilers recognize
memset calls and try to inline them with optimized code (probably even
optimizing the bzero case).
On 21 Apr 2004, Douglas Bates wrote:

            
(You mean char* bytes?  S_alloc was a byte-level loop, but looking in the
headers suggest that gcc3 has optimized inlined code for memset(s, 0, n).)
That's very machine- and compiler- dependent though.