[Liboil] yet another copy_u8

David Schleef ds at schleef.org
Wed Nov 16 10:33:13 PST 2005


On Wed, Nov 16, 2005 at 01:09:44PM +0000, Adam D. Moss wrote:
> I know I shouldn't be wasting time on the little C implementations,
> but I was wondering if Duff's Device still held any merit - seems
> it does (up to 30% improvement for non-tiny n here over
> copy_u8_llints, which is itself up to around 30% faster than
> copy_u8_ints - hope I didn't add an egregious bug).

This technically isn't Duff's device, as the while block is outside
of the switch block.  But using uint64_t is indeed is pretty fast
on my CPU.



dave...


-- 
David Schleef
Big Kitten LLC (http://www.bigkitten.com/) -- data acquisition on Linux


More information about the Liboil mailing list