GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > GRBP / V1-0-0

Constituent: grbpsiu     Tag: sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

wrap.h File Reference

Implements simple wrap around functions for circular lists. More...

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


Functions

static __inline int wrap_hi (int idx, int max)
 Ensures idx is in the interval [0, max). The check is only down on the upper bound.
static __inline int wrap_lo (int idx, int max)
 Ensures idx is in the interval [0, max). The check is only down on the lower bound.

Detailed Description

Implements simple wrap around functions for circular lists.

Author:
JJRussell - russell@slac.stanford.edu
   CVS $Id: wrap.h,v 1.1.1.1 2007/06/18 00:42:58 russell Exp $

Function Documentation

static __inline int wrap_hi int  idx,
int  max
[static]
 

Ensures idx is in the interval [0, max). The check is only down on the upper bound.

Returns:
The constrained index
Parameters:
idx The index to check
max The biase to subtract to idx if it is greater than max

static __inline int wrap_lo int  idx,
int  max
[static]
 

Ensures idx is in the interval [0, max). The check is only down on the lower bound.

Returns:
The constrained index
Parameters:
idx The index to check
max The biase to add to idx if it is less than 0


Generated on Fri Dec 14 09:04:06 2007 by  doxygen 1.4.4