GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> PBS / V2-12-1 > pbs / rhel4-32
#include <PBS/PARITY.h>
#include <PBI/PARITY.ih>
Functions | |
int | PARITY_calc8 (unsigned char byte) |
Calculates the parity over the 8 bits in the specified byte. | |
int | PARITY_calc16 (unsigned short int hword) |
Calculates the parity over the 16 bits in the specified half word. | |
int | PARITY_calc32 (unsigned int word) |
Calculates the parity over the 32 bits in the specified word. | |
int | PARITY_calc64 (unsigned long long int ll) |
Calculates the parity over the 64 bits in the specified long long. | |
int | PARITY_calc8N (const unsigned char *bytes, int nbytes) |
Calculates the parity over all the bits in the specified array of bytes. | |
int | PARITY_calc16N (const unsigned short int *hwords, int nhwords) |
Calculates the parity over all the bits in the specified array of half words (16-bit integers). | |
int | PARITY_calc32N (const unsigned int *words, int nwords) |
Calculates the parity over all the bits in the specified array of words (32-bit integers). | |
int | PARITY_calc64N (const unsigned long long int *lls, int nlls) |
Calculates the parity over all the bits in the specified array of long longs (64-bit integers). | |
int | PARITY_calcOdd8 (unsigned char byte) |
Calculates the odd parity over the 8 bits in the specified byte. | |
int | PARITY_calcOdd16 (unsigned short int hword) |
Calculates the odd parity over the 16 bits in the specified half word. | |
int | PARITY_calcOdd32 (unsigned int word) |
Calculates the odd parity over the 32 bits in the specified word. | |
int | PARITY_calcOdd64 (unsigned long long int ll) |
Calculates the odd parity over the 64 bits in the specified long long. | |
int | PARITY_calcOdd8N (const unsigned char *bytes, int nbytes) |
Calculates the odd parity over all the bits in the specified array of bytes. | |
int | PARITY_calcOdd16N (const unsigned short int *hwords, int nhwords) |
Calculates the odd parity over all the bits in the specified array of half words (16-bit integers). | |
int | PARITY_calcOdd32N (const unsigned int *words, int nwords) |
Calculates the odd parity over all the bits in the specified array of words (32-bit integers). | |
int | PARITY_calcOdd64N (const unsigned long long int *lls, int nlls) |
Calculates the odd parity over all the bits in the specified array of long longs (64-bit integers). |
CVS $Id: PARITY.c.xx-xxx-xxx,v 1.3 2011/03/24 23:05:47 apw Exp $
The implementation is a generic one, suitable, but not optimized to the fullest for all platforms.
int PARITY_calc16 | ( | unsigned short int | hword | ) |
Calculates the parity over the 16 bits in the specified half word.
hword | The half word (short int) to calculate the parity of. |
int PARITY_calc16N | ( | const unsigned short int * | hwords, | |
int | nhwords | |||
) |
Calculates the parity over all the bits in the specified array of half words (16-bit integers).
hwords | The array of half words (16-bit integers) to calculate the parity over. | |
nhwords | The number of half words (16-bit integers) in the array. |
int PARITY_calc32 | ( | unsigned int | word | ) |
Calculates the parity over the 32 bits in the specified word.
word | The word to calculate the parity over. |
int PARITY_calc32N | ( | const unsigned int * | words, | |
int | nwords | |||
) |
Calculates the parity over all the bits in the specified array of words (32-bit integers).
words | The array of words (ints) to calculate the parity over. | |
nwords | The number of words (ints) in the array. |
int PARITY_calc64 | ( | unsigned long long int | ll | ) |
Calculates the parity over the 64 bits in the specified long long.
ll | The long long word to calculate the parity over. |
int PARITY_calc64N | ( | const unsigned long long int * | lls, | |
int | nlls | |||
) |
Calculates the parity over all the bits in the specified array of long longs (64-bit integers).
lls | The array of long longs to calculate the parity over. | |
nlls | The number of long longs in the array. |
int PARITY_calc8 | ( | unsigned char | byte | ) |
Calculates the parity over the 8 bits in the specified byte.
byte | The byte to calculate the parity over. |
int PARITY_calc8N | ( | const unsigned char * | bytes, | |
int | nbytes | |||
) |
Calculates the parity over all the bits in the specified array of bytes.
bytes | The array of bytes to calculate the parity over. | |
nbytes | The number of bytes in array. |
int PARITY_calcOdd16 | ( | unsigned short int | hword | ) |
Calculates the odd parity over the 16 bits in the specified half word.
hword | The half word (short int) to calculate the odd parity of. |
int PARITY_calcOdd16N | ( | const unsigned short int * | hwords, | |
int | nhwords | |||
) |
Calculates the odd parity over all the bits in the specified array of half words (16-bit integers).
hwords | The array of half words (16-bit integers) to calculate the odd parity over. | |
nhwords | The number of half words (16-bit integers) in the array. |
int PARITY_calcOdd32 | ( | unsigned int | word | ) |
Calculates the odd parity over the 32 bits in the specified word.
word | The word to calculate the odd parity over. |
int PARITY_calcOdd32N | ( | const unsigned int * | words, | |
int | nwords | |||
) |
Calculates the odd parity over all the bits in the specified array of words (32-bit integers).
words | The array of words (ints) to calculate the odd parity over. | |
nwords | The number of words (ints) in the array. |
int PARITY_calcOdd64 | ( | unsigned long long int | ll | ) |
Calculates the odd parity over the 64 bits in the specified long long.
ll | The long long word to calculate the parity odd over. |
int PARITY_calcOdd64N | ( | const unsigned long long int * | lls, | |
int | nlls | |||
) |
Calculates the odd parity over all the bits in the specified array of long longs (64-bit integers).
lls | The array of long longs to calculate the parity over. | |
nlls | The number of long longs in the array. |
int PARITY_calcOdd8 | ( | unsigned char | byte | ) |
Calculates the odd parity over the 8 bits in the specified byte.
byte | The byte to calculate the odd parity over. |
int PARITY_calcOdd8N | ( | const unsigned char * | bytes, | |
int | nbytes | |||
) |
Calculates the odd parity over all the bits in the specified array of bytes.
bytes | The array of bytes to calculate the odd parity over. | |
nbytes | The number of bytes in array. |