changeset 1985 | 8055185ae4ed |
parent 1984 | b910bcabec26 |
child 2698 | e1da92da346c |
child 2859 | 99210400e8b9 |
1984:b910bcabec26 | 1985:8055185ae4ed |
---|---|
193 |
193 |
194 |
194 |
195 static __inline__ float |
195 static __inline__ float |
196 SDL_SwapFloat(float x) |
196 SDL_SwapFloat(float x) |
197 { |
197 { |
198 union { float f; Uint32 ui32; } swapper; |
198 union |
199 { |
|
200 float f; |
|
201 Uint32 ui32; |
|
202 } swapper; |
|
199 swapper.f = x; |
203 swapper.f = x; |
200 swapper.ui32 = SDL_Swap32(swapper.ui32); |
204 swapper.ui32 = SDL_Swap32(swapper.ui32); |
201 return swapper.f; |
205 return swapper.f; |
202 } |
206 } |
203 |
207 |