GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EDS / V2-11-6 > ebfio / rhel6-32
#include <EDS/io/EBF_swap.h>
#include <PBI/Endianness.h>
Functions | |
__inline unsigned int | EBF_swap32 (unsigned int w) |
Byte swaps a 32 bit word. | |
__inline unsigned int | EBF_swap16 (unsigned short w) |
Byte swaps a 16 bit words. | |
__inline void | EBF_swap32N (unsigned int *w, int n) |
Byte swaps 32 bit words. | |
__inline void | EBF_swap16N (unsigned short *w, int n) |
Byte swaps 16 bit words. |
This is a cheap version of byte swapping routines. They are meant to be used only locally within this package in an attempt to keep it more or less self-contained.
CVS $Id: EBF_swap.c,v 1.3 2011/03/25 22:16:57 russell Exp $
unsigned int EBF_swap16 | ( | unsigned short | w | ) |
Byte swaps a 16 bit words.
w | The 16 bit word to swap |
void EBF_swap16N | ( | unsigned short * | w, | |
int | n | |||
) |
Byte swaps 16 bit words.
w | The array of 16 bit words to swap | |
n | The number of 16 bit words to swap |
unsigned int EBF_swap32 | ( | unsigned int | w | ) |
Byte swaps a 32 bit word.
w | The 32 bit word to swap |
void EBF_swap32N | ( | unsigned int * | w, | |
int | n | |||
) |
Byte swaps 32 bit words.
w | The array of 32 bit words to swap | |
n | The number of 32 bit words to swap |