Re: GSoC-2011: Implement Missing Mesh Functions in Wine?s D3DX9

2011-08-04 Thread David Laight
On Thu, Aug 04, 2011 at 08:30:41AM -0400, max wrote: On 08/03/2011 09:28 AM, Henri Verbeet wrote: Well yes, it's implementation defined, not undefined. The point is that there isn't necessarily any relation to endianness. Just use shifts and masks. ... union field_order { int an_int; int

Re: GSoC-2011: Implement Missing Mesh Functions in Wine?s D3DX9

2011-08-04 Thread max
On 08/04/2011 12:36 PM, David Laight wrote: On Thu, Aug 04, 2011 at 08:30:41AM -0400, max wrote: On 08/03/2011 09:28 AM, Henri Verbeet wrote: Well yes, it's implementation defined, not undefined. The point is that there isn't necessarily any relation to endianness. Just use shifts and masks.