GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LDT / V0-5-0 > test_huff / linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

bswp.h File Reference

Stripped-down local copy of the PBS swap routines. More...


Functions

static __inline void bswp__store32 (unsigned int *dst, unsigned int val)
 Store the byte-swapped version of val in dst.
static __inline
unsigned int 
bswp__load32 (unsigned int *src)
 Return the byte-swapped version of the 32-bit value at dst.
static __inline void bswp__store32b (unsigned int *dst, unsigned int val)
 Store the big endian representation of val in dst.
static __inline
unsigned int 
bswp__load32b (unsigned int *src)
 Return the big-endian version of the 32-bit value at src.
static __inline void bswp__store32l (unsigned int *dst, unsigned int val)
static __inline
unsigned int 
bswp__load32l (unsigned int *src)


Detailed Description

Stripped-down local copy of the PBS swap routines.

Author:
JJRussell - russell@slac.stanford.edu

   CVS $Id: bswp.h,v 1.2 2006/01/24 00:20:24 russell Exp $

Function Documentation

unsigned int bswp__load32 ( unsigned int *  src  )  [static]

Return the byte-swapped version of the 32-bit value at dst.

Returns:
The byte-swapped version of the 32-bit value at dst
Parameters:
src The source location to fetch the 32-bit value from

unsigned int bswp__load32b ( unsigned int *  src  )  [static]

Return the big-endian version of the 32-bit value at src.

Returns:
The big-endian version of the 32-bit value at src
Parameters:
src The location to fetch the 32-bit value from
On big-endian machines, no byte-swapping takes place

void bswp__store32 ( unsigned int *  dst,
unsigned int  val 
) [static]

Store the byte-swapped version of val in dst.

Parameters:
dst The destination address, must be 32-bit aligned
val The 32-bit value to store

void bswp__store32b ( unsigned int *  dst,
unsigned int  val 
) [static]

Store the big endian representation of val in dst.

Parameters:
dst The destination address, must be 32-bit aligned
val The 32-bit value to store
On big-endian machine no byte-swapping occurs


Generated on Mon Aug 23 09:43:51 2010 by  doxygen 1.5.3