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 - Add SDL_Swap() for floating point...
Summary: Add SDL_Swap() for floating point...
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: HG 1.2
Hardware: All All
: P2 API change
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-03 16:34 UTC by Ryan C. Gordon
Modified: 2006-08-26 17:10 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.