UFO: Alien Invasion
Loading...
Searching...
No Matches
byte.h File Reference

Byte order functions header. More...

#include <SDL_endian.h>
Include dependency graph for byte.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

union  floatint_t

Macros

#define BigShort(X)
#define LittleShort(X)
#define BigLong(X)
#define LittleLong(X)
#define BigFloat(X)
#define LittleFloat(X)

Typedefs

typedef float float32_t

Functions

static __inline__ float32_t FloatSwap (const float32_t *f)
void Swap_Init (void)

Detailed Description

Byte order functions header.

Definition in file byte.h.

Macro Definition Documentation

◆ BigFloat

#define BigFloat ( X)
Value:
FloatSwap(&(X))
static __inline__ float32_t FloatSwap(const float32_t *f)
Definition byte.h:45

Definition at line 56 of file byte.h.

◆ BigLong

#define BigLong ( X)
Value:
(int)SDL_SwapBE32(X)
typedef int(ZCALLBACK *close_file_func) OF((voidpf opaque

Definition at line 36 of file byte.h.

◆ BigShort

#define BigShort ( X)
Value:
(short)SDL_SwapBE16(X)

Definition at line 34 of file byte.h.

◆ LittleFloat

◆ LittleLong

◆ LittleShort

Typedef Documentation

◆ float32_t

typedef float float32_t

Definition at line 32 of file byte.h.

Function Documentation

◆ FloatSwap()

__inline__ float32_t FloatSwap ( const float32_t * f)
static

Definition at line 45 of file byte.h.

References f, floatint_t::f, and floatint_t::ui.

◆ Swap_Init()

void Swap_Init ( void )

Definition at line 31 of file byte.cpp.

References Com_Printf(), and Sys_Error().

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