Bug#157084: Performance gains of using weird MEMSET macro

2006-01-13 Thread Michael Jennings
No, Anthony, you cannot answer how much performance is gained by using the MEMSET macro simply by looking at the assembler output. Especially not with such a contrived example. What you *can* do, however, is use "make perf" and look at the performance comparison between gcc/glibc memset() and liba

Bug#157084: Performance gains of using weird MEMSET macro

2006-01-10 Thread Anthony DeRobertis
In regards to bug 157084, I can answer how much performance the MEMSET macro gains you: [EMAIL PROTECTED]:test-memset$ cat test-memset.c #include int set(char *x) { memset(x, 0, 10); } int main() { char buf[10]; set(buf); } [EMAIL PROTECTED]:test-memset$ gcc -O2 -c test