Marc van Woerkom wrote:
>
> Hi,
>
> while porting the ogle dvd player I faced the
> problem of needing fast byte swap routines for
> 16, 32 and 64 bit words.
>
> After grepping through the -CURRENT sources
> I came up with at least three different
> assembler implementations.
The networking implementations tend to be fastest,
and are clever.
On certain architectures (e.g. Transputer, which has a
barrel shifter), the assembly versions are going to be
faster, even at the cost of a function call overhead,
which the macro versions don't have.
-- Terry
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message