GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> PBS / V2-12-1 > pbs_boot / rad750
Functions | |
unsigned int | BSWP_swap16 (unsigned short int w) |
Byte swaps a 16 bit word. | |
unsigned int | BSWP_load16 (const unsigned short int *src) |
Loads a byte swapped version of the 16 bit integer from memory. | |
unsigned int | BSWP_load16x (const unsigned short int *src, unsigned int offset) |
Loads a byte swapped version of the 16 bit integer from memory. | |
void | BSWP_store16 (unsigned short int *dst, unsigned short int w) |
Stores a byte swapped version of the 16 bit integer to memory. | |
void | BSWP_store16x (unsigned short int *dst, unsigned int offset, unsigned short int w) |
Stores a byte swapped version of the 16 bit integer to memory. | |
unsigned int | BSWP_swap32 (unsigned int w) |
Byte swaps a 32 bit word. | |
unsigned int | BSWP_load32 (const unsigned int *src) |
Loads a byte swapped version of the 32 bit integer from memory. | |
unsigned int | BSWP_load32x (const unsigned int *src, unsigned int offset) |
Loads a byte swapped version of the 32 bit integer from memory after applying the specified offset. | |
void | BSWP_store32 (unsigned int *dst, unsigned int w) |
Stores a byte swapped version of the 32 bit integer to memory. | |
void | BSWP_store32x (unsigned int *dst, unsigned int offset, unsigned int w) |
Stores a byte swapped version of the 32 bit integer to memory after a byte offset has been applied. |
CVS $Id: BSWP_boot.h,v 1.1 2003/08/20 17:37:00 russell Exp $
SYNOPSIS
The BSWP routines provide efficient and uniform methods of performing various byte swap operations on arrays of 16 and 32 bit integers. These routines use the inline routines of BSWP.ih to implement the byteswapping. The PPC platform uses theseinline routines map directly onto the hardware instructions used to load and store both 16 and 32 bit byteswapped quantities to and from memory.
unsigned int BSWP_load16 | ( | const unsigned short int * | src | ) |
Loads a byte swapped version of the 16 bit integer from memory.
src | The address of the 16 bit integer to load |
unsigned int BSWP_load16x | ( | const unsigned short int * | src, | |
unsigned int | offset | |||
) |
Loads a byte swapped version of the 16 bit integer from memory.
src | The address of the 16 bit integer to load | |
offset | The byte offset from the source |
unsigned int BSWP_load32 | ( | const unsigned int * | src | ) |
Loads a byte swapped version of the 32 bit integer from memory.
src | The address of the 32 bit integer to load |
unsigned int BSWP_load32x | ( | const unsigned int * | src, | |
unsigned int | offset | |||
) |
Loads a byte swapped version of the 32 bit integer from memory after applying the specified offset.
src | The address of the 32 bit integer to load | |
offset | The byte offset to be applied. |
void BSWP_store16 | ( | unsigned short int * | dst, | |
unsigned short int | w | |||
) |
Stores a byte swapped version of the 16 bit integer to memory.
dst | The address of the destination word | |
w | The word to byte swap and store |
void BSWP_store16x | ( | unsigned short int * | dst, | |
unsigned int | offset, | |||
unsigned short int | w | |||
) |
Stores a byte swapped version of the 16 bit integer to memory.
dst | The address of the destination word | |
offset | A byte offset to apply to dst. | |
w | The word to byte swap and store |
void BSWP_store32 | ( | unsigned int * | dst, | |
unsigned int | w | |||
) |
Stores a byte swapped version of the 32 bit integer to memory.
dst | The address of the destination word | |
w | The word to byte swap and store |
void BSWP_store32x | ( | unsigned int * | dst, | |
unsigned int | offset, | |||
unsigned int | w | |||
) |
Stores a byte swapped version of the 32 bit integer to memory after a byte offset has been applied.
dst | The address of the destination word | |
offset | The byte offset to be applied | |
w | The word to byte swap and store |
unsigned int BSWP_swap16 | ( | unsigned short int | w | ) |
Byte swaps a 16 bit word.
w | The 16 bit word to swap |
unsigned int BSWP_swap32 | ( | unsigned int | w | ) |
Byte swaps a 32 bit word.
w | The 32 bit word to swap |