[MPlayer-dev-eng] [PATCH] liba52/bitstream.h
Daniel Egger
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
purposes.
--
Servus,
Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20030702/ff0aff31/attachment.pgp>
More information about the MPlayer-dev-eng
mailing list