Re: ntohl and others

Alan Cox (alan@lxorguk.ukuu.org.uk)
Thu, 16 Oct 1997 22:58:24 +0100 (BST)


> These macros are needed in the networking layer where they'd hurt network
> speed if they became a function.
>
> GCC isn't all that good at converting functions to inline code....

GCC should always generate the same code for both cases. It near enough
types the inline function in and compiles it again