This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]