Date: Wed, 27 Jun 2001 10:07:07 -0700 From: Terry Lambert <tlambert2@mindspring.com> To: 3d@FreeBSD.ORG Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: swapping bytes, fpos_t Message-ID: <3B3A12BB.30EB8D80@mindspring.com> References: <20010626130659.400C437B405@hub.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B3A12BB.30EB8D80>