We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 293

Summary: Add SDL_Swap() for floating point...
Product: SDL Reporter: Ryan C. Gordon <icculus>
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: API change    
Priority: P2    
Version: HG 1.2   
Hardware: All   
OS: All   

Description Ryan C. Gordon 2006-08-03 16:34:37 UTC
SDL_Swap32() isn't convenient for floating point values. Might be nice to have an SDL_SwapFloatBE() and SDL_SwapFloatLE() API.

--ryan.
Comment 1 Ryan C. Gordon 2006-08-24 08:50:27 UTC
Sam, can you look at svn revision #2707 and make sure this isn't completely dumb?

   http://www.libsdl.org/cgi/viewvc.cgi?view=rev&revision=2707

--ryan.

Comment 2 Sam Lantinga 2006-08-26 13:34:57 UTC
Looks good, as long as the optimizer doesn't do anything stupid like leave the value in the FPU. :)
Comment 3 Ryan C. Gordon 2006-08-26 17:10:24 UTC
I think it probably disables all aliasing optimizations when it sees the union. If the new symbol names are acceptable, we'll leave this bug as resolved.

--ryan.