Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Examples  

endian.c File Reference

Go to the source code of this file.

Functions

void swap_short_2 (short *tni2)
 Swap a 2 byte signed integer.

void swap_u_short_2 (unsigned short *tni2)
 Swap a 2 byte unsigned integer.

void swap_int_4 (int *tni4)
 Swap a 4 byte signed integer.

void swap_u_int_4 (unsigned int *tni4)
 Swap a 4 byte unsigned integer.

void swap_long_4 (long *tni4)
 Swap a 4 byte signed long integer.

void swap_u_long_4 (unsigned long *tni4)
 Swap a 4 byte unsigned long integer.

void swap_float_4 (float *tnf4)
 Swap a 4 byte floating point number.

void swap_double_8 (double *tndd8)
 Swap a 8 byte double number.


Detailed Description

This file implements various utilities to swap between little/big endian.

Definition in file endian.c.


Function Documentation

void swap_double_8 double *    tndd8
 

Swap a 8 byte double number.

Parameters:
tndd8 Pointer to the 8 byte double number to swap.

Definition at line 81 of file endian.c.

void swap_float_4 float *    tnf4
 

Swap a 4 byte floating point number.

Parameters:
tnf4 Pointer to the 4 byte floating point number to swap.

Definition at line 70 of file endian.c.

void swap_int_4 int *    tni4
 

Swap a 4 byte signed integer.

Parameters:
tni4 Pointer to the 4 byte signed integer to swap.

Definition at line 30 of file endian.c.

void swap_long_4 long *    tni4
 

Swap a 4 byte signed long integer.

Parameters:
tni4 Pointer to the 4 byte signed long integer to swap.

Definition at line 50 of file endian.c.

void swap_short_2 short *    tni2
 

Swap a 2 byte signed integer.

Parameters:
tni2 Pointer to the 2 byte signed integer to swap.

Definition at line 12 of file endian.c.

void swap_u_int_4 unsigned int *    tni4
 

Swap a 4 byte unsigned integer.

Parameters:
tni4 Pointer to the 4 byte unsigned integer to swap.

Definition at line 40 of file endian.c.

void swap_u_long_4 unsigned long *    tni4
 

Swap a 4 byte unsigned long integer.

Parameters:
tni4 Pointer to the 4 byte unsigned long integer to swap.

Definition at line 60 of file endian.c.

void swap_u_short_2 unsigned short *    tni2
 

Swap a 2 byte unsigned integer.

Parameters:
tni2 Pointer to the 2 byte unsigned integer to swap.

Definition at line 21 of file endian.c.


Generated on Thu Apr 3 16:23:45 2003 for Common_C_libraries by doxygen1.3-rc1