Re: [Algorithms] Byte Swapping
Brought to you by:
vexxed72
From: Peter D. <pd...@mm...> - 2000-07-18 15:52:28
|
> Hmm... I'm not sure what's wrong with it, it's some C order of operations > problem > that I'm not familiar with. The code assigns to x several times without an intervening sequence point and invokes undefined behavior. The compiler is free to do the assignments to x in any order. -- Peter Dimov Multi Media Ltd. |