GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> QLSM / V2-0-1 > qlsm / rhel5-64


Interface   Data Structures   File List   Data Fields   Globals  

BSWP_fd.ih File Reference

Provides byte-swappers for floats and doubles. More...

#include <PBI/BSWP.ih>

Classes

union  _U_long_float
union  U_longlong_double

Typedefs

typedef union _U_long_float U_long_float

Functions

static __inline double BSWP__loadDoubleb (const double *val)
 Ensures that a big endian representation of a double is properly handled on big or little endian machines.
static __inline float BSWP__loadFloatb (const float *val)
 Ensures that a big endian representation of a single is properly handled on big or little endian machines.


Detailed Description

Provides byte-swappers for floats and doubles.

Author:
JJRussell - russell@slac.stanford.edu

   CVS $Id: BSWP_fd.ih,v 1.2 2011/03/30 21:53:58 russell Exp $

This should go into PBI


Function Documentation

static __inline double BSWP__loadDoubleb ( const double *  val  )  [static]

Ensures that a big endian representation of a double is properly handled on big or little endian machines.

Returns:
The appropriately swapped value
Parameters:
val The value to potentially swap

Referenced by QLSM_attitudeExpandV1().

static __inline float BSWP__loadFloatb ( const float *  val  )  [static]

Ensures that a big endian representation of a single is properly handled on big or little endian machines.

Returns:
The appropriately swapped value
Parameters:
val The value to potentially swap

Referenced by QLSM_ancillaryExpandV1(), and QLSM_attitudeExpandV1().


Generated on Tue Nov 29 19:44:09 2011 by  doxygen 1.5.8