Re: [Algorithms] Byte Swapping
Brought to you by:
vexxed72
From: Jens A. <jAy...@ne...> - 2000-07-16 06:48:05
|
> I can do the obvious method, but I was wondering if anyone have any > cool/fast code snippets for byte swapping integers and floats? Depends on the platform. PowerPCs have "load word byte-reversed indexed" (lwbrx) and "load halfword byte-reversed indexed" (lhbrx) instructions, for instance. -- Jens Ayton |