byte.c File Reference

Byte order functions. More...

#include <SDL/SDL_endian.h>
#include "../common/common.h"
Include dependency graph for byte.c:

Go to the source code of this file.

Functions

short BigShort (uint16_t l)
short LittleShort (uint16_t l)
int BigLong (uint32_t l)
int LittleLong (uint32_t l)
float BigFloat (float l)
float LittleFloat (float l)
static float FloatSwap (float f)
static float FloatNoSwap (float f)
void Swap_Init (void)

Variables

static float(* _BigFloat )(float l)
static float(* _LittleFloat )(float l)

Detailed Description

Byte order functions.

Definition in file byte.c.


Function Documentation

float BigFloat ( float  l  ) 

Definition at line 52 of file byte.c.

References _BigFloat.

Referenced by R_ModLoadAliasDPMModel(), and SV_ModLoadAliasDPMModel().

int BigLong ( uint32_t  l  ) 

Definition at line 44 of file byte.c.

Referenced by R_ModLoadAliasDPMModel(), and SV_ModLoadAliasDPMModel().

short BigShort ( uint16_t  l  ) 

Definition at line 36 of file byte.c.

static float FloatNoSwap ( float  f  )  [static]
See also:
FloatSwap

Definition at line 82 of file byte.c.

Referenced by Swap_Init().

static float FloatSwap ( float  f  )  [static]
See also:
FloatNoSwap

Definition at line 64 of file byte.c.

References byte.

Referenced by Swap_Init().

float LittleFloat ( float  l  ) 
int LittleLong ( uint32_t  l  ) 
short LittleShort ( uint16_t  l  ) 
void Swap_Init ( void   ) 

Definition at line 87 of file byte.c.

References _BigFloat, _LittleFloat, Com_Printf(), FloatNoSwap(), and FloatSwap().

Referenced by main(), Qcommon_Init(), and TEST_Init().


Variable Documentation

float(* _BigFloat)(float l) [static]

Referenced by BigFloat(), and Swap_Init().

float(* _LittleFloat)(float l) [static]

Referenced by LittleFloat(), and Swap_Init().


Generated by  doxygen 1.6.2