GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> QSE / V2-3-2 > qseprint / rhel5-32


Interface   Data Structures   File List   Data Fields   Globals  

QSE_map.xx-x86-gcc.h File Reference

QSE_map, X86 and GCC platform specific implementation. More...


Functions

static __inline int QSE_mapScanf (QSE_map map)
 Finds the first set bit (LSB = bit 0) in the specified map.
static __inline int QSE_mapScanr (QSE_map map)
 Finds the first set bit (LSB = bit 0) in the specified map.
static __inline int QSE_mapScanF (QSE_map map)
 Finds the first set bit (MSB = bit 0) in the specified map.
static __inline int QSE_mapScanR (QSE_map map)
 Finds the first set bit (MSB = bit 0) in the specified map.


Detailed Description

QSE_map, X86 and GCC platform specific implementation.

Author:
JJRussell - russell@slac.stanford.edu

   CVS $Id: QSE_map.xx-x86-gcc.h,v 1.5 2006/02/22 01:24:42 russell Exp $

Function Documentation

int QSE_mapScanF ( QSE_map  map  )  [static]

Finds the first set bit (MSB = bit 0) in the specified map.

Returns:
Returns the bit number of the first set bit
Overview
This routine scans a 32 bit longword from right (LSB) to left (MSB) looking for the first bit set. If it finds a bit it returns a value in the range 0-31. The routine is not protected against 0 as an input and the result is undefined.
X86 Implementation
The Intel implementation is an 'bsf' instruction.

int QSE_mapScanf ( QSE_map  map  )  [static]

Finds the first set bit (LSB = bit 0) in the specified map.

Returns:
Returns the bit number of the first set bit
Overview
This routine scans a 32 bit longword from right (LSB) to left (MSB) looking for the first bit set. If it finds a bit it returns a value in the range 0-31. The routine is not protected against 0 as an input and the result is undefined.
X86 Implementation
The Intel implementation is an 'bsf' instruction.

Referenced by QSE_calPrint(), QSE_ecalPrintTowers(), QSE_ecalTwrPrintFull(), and QSE_tkrPrint().

int QSE_mapScanR ( QSE_map  map  )  [static]

Finds the first set bit (MSB = bit 0) in the specified map.

Returns:
Returns the bit number of the first set bit
Overview
This routine scans a 32 bit longword from left (MSB) to righ (MSB) looking for the first bit set. If it finds a bit it returns a value in the range 0-31. The routine is not protected against 0 as an input and the result is undefined.
X86 Implementation
The Intel implementation is an 'bsr' instruction.

Referenced by classify(), and getDisplayChar().

int QSE_mapScanr ( QSE_map  map  )  [static]

Finds the first set bit (LSB = bit 0) in the specified map.

Returns:
Returns the bit number of the first set bit
Overview
This routine scans a 32 bit longword from left (MSB) to righ (MSB) looking for the first bit set. If it finds a bit it returns a value in the range 0-31. The routine is not protected against 0 as an input and the result is undefined.
X86 Implementation
The Intel implementation is an 'bsr' instruction.

Referenced by printTower().


Generated on Tue Nov 29 20:06:12 2011 by  doxygen 1.5.8