[PATCH] Suggested FreeBSD merge
joerg at britannica.bec.de
Mon Nov 15 00:11:45 PST 2004
On Fri, Nov 12, 2004 at 01:39:13PM +0800, Xin LI wrote:
> I think you would interest the patch attached. This brings FreeBSD
> rev. 1.10 of htonl.S and ntohl.S's changes by David O'Brien, which
> is positive for application performance on 80486 and above.
I should add that this specific change is most likely not of interest.
In DragonFly, htonl is inlined by default. Depending on the compiler
settings, the generic i386 version is used or the faster i486 code
(-march=i486 and above). That the libc version is only used as fall-back
if a program doesn't use the header files.
The overhead of calling the assembler versions, esp. in the PIC case is
most likely greater than the time saving by using i486 code.
More information about the Submit