GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > PBS / V2-10-11

Constituent: pbs     Tag: linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

BSWP.c File Reference

Byteswapping, callable implementation. More...

#include <string.h>
#include "PBI/Alias.h"
#include "PBI/Attribute.h"
#include "PBS/BSWP.h"
#include "PBS/BSWP.ih"

Include dependency graph for BSWP.c:


Functions

void BSWP_swap16N (unsigned short int *dst, const unsigned short int *src, int cnt)
 Byte swaps 16 bit words.
void BSWP_swap32N (unsigned int *dst, const unsigned int *src, int cnt)
 Byte swaps 32 bit words.
void BSWP_swap64N (unsigned long long int *dst, const unsigned long long int *src, int cnt)
 Byte swaps 64 bit words.
void BSWP_swap16lN (unsigned short int *dst, const unsigned short int *src, int cnt)
 Byte swaps 16 bit words; local representation <=> little.
void BSWP_swap16bN (unsigned short int *dst, const unsigned short int *src, int cnt)
 Byte swaps 16 bit words; local representation <=> big.
void BSWP_swap32lN (unsigned int *dst, const unsigned int *src, int cnt)
 Byte swaps an array 32 bit words; local representation <=> little.
void BSWP_swap32bN (unsigned int *dst, const unsigned int *src, int cnt)
 Byte swaps 32 bit words; local representation <=> big.
void BSWP_swap64lN (unsigned long long int *dst, const unsigned long long int *src, int cnt)
 Byte swaps an array 64 bit words; local representation <=> little.
void BSWP_swap64bN (unsigned long long int *dst, const unsigned long long int *src, int cnt)
 Byte swaps 64 bit words; local representation <=> big.
void BSWP_swap16_lclXbigN (unsigned short int *dst, const unsigned short int *src, int cnt)
 Byte swaps 16 bit words; local representation <=> big.
void BSWP_swap16_lclXlittleN (unsigned short int *dst, const unsigned short int *src, int cnt)
 Byte swaps 16 bit words; local representation <=> little.
void BSWP_swap32_lclXbigN (unsigned int *dst, const unsigned int *src, int cnt)
 Byte swaps 32 bit words; local representation <=> big.
void BSWP_swap32_lclXlittleN (unsigned int *dst, const unsigned int *src, int cnt)
 Byte swaps an array 32 bit words; local representation <=> little.

Detailed Description

Byteswapping, callable implementation.

Author:
JJRussell - russell@slac.stanford.edu
    CVS $Id: BSWP.c,v 1.4 2005/10/01 01:00:13 russell Exp $

Function Documentation

void BSWP_swap16_lclXbigN unsigned short int *  dst,
const unsigned short int *  src,
int  cnt
 

Byte swaps 16 bit words; local representation <=> big.

Parameters:
dst The destination array to receive the swapped words
src The source array of 16 bit words to swap
cnt The number of 16 bit words to swap
This routine transforms the source array of 16 bit integer to/from local/big endian representation from to/big endian/local representation. If the local representation is big endian, then this operation is a copy. If the local representation is big endian and the source and destination addresses are identical, then this operation is a NOOP.

Warning:
This function name is being deprecated. The new name is BSWP_swap16bN().

void BSWP_swap16_lclXlittleN unsigned short int *  dst,
const unsigned short int *  src,
int  cnt
 

Byte swaps 16 bit words; local representation <=> little.

Parameters:
src The source array of 16 bit words to swap
dst The destination array to receive the swapped words
cnt The number of 16 bit words to swap
This routine transforms the source array of 16 bit integer to/from local/little endian representation from/to little endian/local representation. If the local representation is little endian, then this operation is a copy. If the local representation is little endian and the source and destination addresses are identical, then this operation is a NOOP.

Warning:
This function name is being deprecated. The new name is BSWP_swap16lN().

void BSWP_swap16bN unsigned short int *  dst,
const unsigned short int *  src,
int  cnt
 

Byte swaps 16 bit words; local representation <=> big.

Parameters:
dst The destination array to receive the swapped words
src The source array of 16 bit words to swap
cnt The number of 16 bit words to swap
This routine transforms the source array of 16 bit integer to/from local/big endian representation from to/big endian/local representation. If the local representation is big endian, then this operation is a copy. If the local representation is big endian and the source and destination addresses are identical, then this operation is a NOOP.

Warning:
This function name is being deprecated. The new name is BSWP_swap16bN().

void BSWP_swap16lN unsigned short int *  dst,
const unsigned short int *  src,
int  cnt
 

Byte swaps 16 bit words; local representation <=> little.

Parameters:
src The source array of 16 bit words to swap
dst The destination array to receive the swapped words
cnt The number of 16 bit words to swap
This routine transforms the source array of 16 bit integer to/from local/little endian representation from/to little endian/local representation. If the local representation is little endian, then this operation is a copy. If the local representation is little endian and the source and destination addresses are identical, then this operation is a NOOP.

void BSWP_swap16N unsigned short int *  dst,
const unsigned short int *  src,
int  cnt
 

Byte swaps 16 bit words.

Parameters:
dst The destination array to receive the swapped words
src The source array of 16 bit words to swap
cnt The number of 16 bit words to swap
This routine byte swaps the source array of 16 bit integers into the destination array.

void BSWP_swap32_lclXbigN unsigned int *  dst,
const unsigned int *  src,
int  cnt
 

Byte swaps 32 bit words; local representation <=> big.

Parameters:
dst The destination array to receive the swapped words
src The source array of 32 bit words to swap
cnt The number of 32 bit words to swap
This routine transforms the source array of 32 bit integer to/from local/big endian representation from/to big endian/local representation. If the local representation is big endian, then this operation is a copy. If the local representation is big endian and the source and destination addresses are identical, then this operation is a NOOP.

Warning:
This function name is being deprecated. The new name is BSWP_swap32bN().

void BSWP_swap32_lclXlittleN unsigned int *  dst,
const unsigned int *  src,
int  cnt
 

Byte swaps an array 32 bit words; local representation <=> little.

Parameters:
dst The destination array to receive the swapped words
src The source array of 32 bit words to swap
cnt The number of 32 bit words to swap
This routine transforms the source array of 32 bit integer to/from local/little endian representation from to little endian/local representation. If the local representation is little endian, then this operation is a copy. If the local representation is little endian and the source and destination addresses are identical, then this operation is a NOOP.

Warning:
This function name is being deprecated. The new name is BSWP_swap32lN().

void BSWP_swap32bN unsigned int *  dst,
const unsigned int *  src,
int  cnt
 

Byte swaps 32 bit words; local representation <=> big.

Parameters:
dst The destination array to receive the swapped words
src The source array of 32 bit words to swap
cnt The number of 32 bit words to swap
This routine transforms the source array of 32 bit integer to/from local/big endian representation from/to big endian/local representation. If the local representation is big endian, then this operation is a copy. If the local representation is big endian and the source and destination addresses are identical, then this operation is a NOOP.

Warning:
This function name is being deprecated. The new name is BSWP_swap32bN().

void BSWP_swap32lN unsigned int *  dst,
const unsigned int *  src,
int  cnt
 

Byte swaps an array 32 bit words; local representation <=> little.

Parameters:
dst The destination array to receive the swapped words
src The source array of 32 bit words to swap
cnt The number of 32 bit words to swap
This routine transforms the source array of 32 bit integer to/from local/little endian representation from to little endian/local representation. If the local representation is little endian, then this operation is a copy. If the local representation is little endian and the source and destination addresses are identical, then this operation is a NOOP.

void BSWP_swap32N unsigned int *  dst,
const unsigned int *  src,
int  cnt
 

Byte swaps 32 bit words.

Parameters:
src The source array of 32 bit words to swap
dst The destination array to receive the swapped words
cnt The number of 32 bit words to swap
This routine byte swaps the source array of 32 bit integers into the destination array.

void BSWP_swap64bN unsigned long long int *  dst,
const unsigned long long int *  src,
int  cnt
 

Byte swaps 64 bit words; local representation <=> big.

Parameters:
dst The destination array to receive the swapped words
src The source array of 64 bit words to swap
cnt The number of 64 bit words to swap
This routine transforms the source array of 64 bit integer to/from local/big endian representation from/to big endian/local representation. If the local representation is big endian, then this operation is a copy. If the local representation is big endian and the source and destination addresses are identical, then this operation is a NOOP.

void BSWP_swap64lN unsigned long long int *  dst,
const unsigned long long int *  src,
int  cnt
 

Byte swaps an array 64 bit words; local representation <=> little.

Parameters:
dst The destination array to receive the swapped words
src The source array of 64 bit words to swap
cnt The number of 64 bit words to swap
This routine transforms the source array of 64 bit integer to/from local/little endian representation from to little endian/local representation. If the local representation is little endian, then this operation is a copy. If the local representation is little endian and the source and destination addresses are identical, then this operation is a NOOP.

void BSWP_swap64N unsigned long long int *  dst,
const unsigned long long int *  src,
int  cnt
 

Byte swaps 64 bit words.

Parameters:
src The source array of 64 bit words to swap
dst The destination array to receive the swapped words
cnt The number of 64 bit words to swap
This routine byte swaps the source array of 64 bit integers into the destination array.


Generated on Wed Dec 20 05:00:42 2006 by  doxygen 1.4.4