[MPlayer-dev-eng] [PATCH] liba52/bitstream.h
degger at fhm.edu
Wed Jul 2 07:43:07 CEST 2003
Am Die, 2003-07-01 um 21.41 schrieb Ruben Garcia:
> I remember somebody saying that he didn't use inline functions for this
> because gcc used one more register with the function than with the macro.
> But it was some time ago, so it might have been fixed already, or it
> might not be a problem in this case.
In theory functions have the advantage (over macros that is) that they
provide more aliasing information as well as typechecking and can be
used non-inlined if it doesn't payoff size-/speedwise.
That having said, it certainly is possible to write faster macros than
normal functions even with nowadays gccs and more interestingly DWARF3
is now also able to express the usage of macros for debugging purposes.
It's still desirable to prefer inline functions over macros when not
really needed for preprocessing purposes, if only for cleanness
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
More information about the MPlayer-dev-eng