This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [Patch] libstdc++/26970
On Mon, 12 Jun 2006, Jakub Jelinek wrote:
| > Variadic functions are usually slower than non-variadic ones. Any
| > reason why the issue could not be addressed differently?
|
| But s*printf is already variadic and on most targets sprintf and snprintf
| are just tiny wrappers around vsprintf and vsnprintf (the code duplication
| would be otherwise huge). So it really doesn't matter if you do
| va_start/va_end in the vsnprintf caller or call snprintf which in turn
| does va_start/va_end.
you're right. That clarifies my earlier "surprise".
Thanks,
-- Gaby