Wiki Page Content

Differences between revisions 2 and 3
Revision 2 as of 2010-08-26 06:17:50
Size: 903
Editor: SheenaSmith
Comment: minor change
Revision 3 as of 2013-08-07 22:39:56
Size: 662
Editor: Sam Lantinga
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
||<tablewidth="100%" style="color: #FF0000;" :> DRAFT||
Line 6: Line 5:
Use this function to swap byte order from big-endian to native. Use this function to swap the byte order of a big endian floating point value to native ordering.
Line 16: Line 15:
||'''x'''||the data to be swapped|| ||'''x'''||the value to be swapped||
Line 19: Line 18:
Returns the data in a native format the compiler will accept. ??? Returns the native floating point value.
Line 29: Line 28:
??? This is mainly to keep compilers from complaining in SDL code. If there is no real 64-bit datatype, then compilers will complain about the fake 64-bit datatype that SDL provides when it compiles user code.
Line 32: Line 29:
 .[[SDL_SwapFloat]]

SDL_SwapFloatBE

Use this function to swap the byte order of a big endian floating point value to native ordering.

Syntax

float SDL_SwapFloatBE(float x)

Function Parameters

x

the value to be swapped

Return Value

Returns the native floating point value.

Code Examples

You can add your code example here

Remarks

You can add useful comments here


CategoryAPI, CategoryEndian

None: SDL_SwapFloatBE (last edited 2013-08-07 22:48:18 by Sam Lantinga)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit