GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LATC / V9-1-3 > QLATC_report / rhel4-32


Interface   Data Structures   File List   Data Fields   Globals  

number.ic File Reference

Static inline functions that calculate some numerical values. More...

#include <AG_number_s.h>
#include <string.h>

Functions

static size_t sizeofMap (LATC_type type)
 Return the size of the 32-bit word bit-map that would hold enough bits to map all the instances of this type.
static void clearMap (unsigned *map, LATC_type type)
 Set all bits to zero.
static void setMap (unsigned *map, LATC_type type)
 Set all bits to one.
static unsigned countMap (const unsigned *map, LATC_type type)
 Count the number of set bits.
static void setBit (unsigned *map, unsigned index)
 Set bit i.
static void clearBit (unsigned *map, unsigned index)
 Clear bit i.
static int checkBit (const unsigned *map, unsigned index)
 Check bit i.


Detailed Description

Static inline functions that calculate some numerical values.

Author:
James Swain -- jswain@slac.stanford.edu

Function Documentation

int checkBit ( const unsigned *  map,
unsigned  i 
) [inline, static]

Check bit i.

Parameters:
map Map being manipulated
i Bit to check
Returns:
Value of the bit being checked (0/1)

Referenced by consumeNormalFile().

void clearBit ( unsigned *  map,
unsigned  i 
) [inline, static]

Clear bit i.

Parameters:
map Map being manipulated
i Bit to clear

void clearMap ( unsigned *  map,
LATC_type  type 
) [inline, static]

Set all bits to zero.

Parameters:
map Map being manipulated
type Component type to be mapped

References sizeofMap().

unsigned countMap ( const unsigned *  map,
LATC_type  type 
) [inline, static]

Count the number of set bits.

Parameters:
map Map being manipulated
type Component type to be mapped
Returns:
Number of set bits

void setBit ( unsigned *  map,
unsigned  i 
) [inline, static]

Set bit i.

Parameters:
map Map being manipulated
i Bit to set

Referenced by consumeNormalFile().

void setMap ( unsigned *  map,
LATC_type  type 
) [inline, static]

Set all bits to one.

Parameters:
map Map being manipulated
type Component type to be mapped

References sizeofMap().

size_t sizeofMap ( LATC_type  type  )  [inline, static]

Return the size of the 32-bit word bit-map that would hold enough bits to map all the instances of this type.

Parameters:
type Component type to be mapped
Returns:
Corresponding map size.

Referenced by clearMap(), consumeNormalFile(), QLATC_consumeMap(), and setMap().


Generated on Sat Apr 9 19:54:01 2011 by  doxygen 1.5.8