GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > QLSM / dev

Constituent: qlsm     Tag: sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

BSWP_fd.ih File Reference

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

#include "PBS/BSWP.ih"

Include dependency graph for BSWP_fd.ih:

This graph shows which files directly or indirectly include this file:


Data Structures

union  _U_long_float
union  U_longlong_double

Typedefs

typedef _U_long_float U_long_float
typedef U_longlong_double U_longlong_double

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.1 2008/09/20 00:41:38 russell Exp $

This should go into PBI/PBS


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

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


Generated on Sat Sep 20 02:27:12 2008 by  doxygen 1.4.4