Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

cps::FPConv Class Reference

#include <fpconv.h>

Inherits cps::DataConversion.

List of all members.

Public Member Functions

 FPConv ()
virtual ~FPConv ()
char * file2host (char *hbuf, const char *fdat, const int fdat_len) const
char * host2file (char *fbuf, const char *hdat, const int hdat_len) const
enum FP_FORMAT setFileFormat (const char *desc)
enum FP_FORMAT setFileFormat (const enum FP_FORMAT dataFormat)
unsigned int checksum (char *data, const int data_len, const enum FP_FORMAT dataFormat) const
int size (const enum FP_FORMAT datatype) const
bool big_endian (const enum FP_FORMAT datatype) const
int fileFpSize () const
int hostFpSize () const
int fileDataSize () const
int hostDataSize () const
unsigned int checksum (char *data, const int data_len) const
unsigned int posDepCsum (char *data, const int data_len, const int dimension, const QioArg &qio_arg, const int site_id, const int global_id) const
void SimQCDSP (int sim)

Static Public Member Functions

const char * name (const enum FP_FORMAT format)

Protected Member Functions

void ti2ieee (type32 *, int) const
void ieee2ti (type32 *, int) const
void byterevn (type32 w[], int n) const
void byterevn64 (type64 w[], int n) const
void conv64to32 (type32 tgt[], type64 src[], int n) const
void conv32to64 (type64 tgt[], type32 src[], int n) const
void copy64 (type64 tgt[], type64 src[], int n) const
void copy32 (type32 tgt[], type32 src[], int n) const
enum FP_FORMAT testHostFormat ()


Constructor & Destructor Documentation

cps::FPConv::FPConv  ) 
 

Definition at line 27 of file fpconv.C.

References cps::FP_UNKNOWN, and testHostFormat().

cps::FPConv::~FPConv  )  [virtual]
 

Definition at line 33 of file fpconv.C.


Member Function Documentation

bool cps::FPConv::big_endian const enum FP_FORMAT  datatype  )  const
 

Definition at line 368 of file fpconv.C.

References cps::FP_IEEE32, cps::FP_IEEE32BIG, cps::FP_IEEE32LITTLE, cps::FP_IEEE64, cps::FP_IEEE64BIG, cps::FP_IEEE64LITTLE, and cps::FP_TIDSP32.

Referenced by checksum(), file2host(), and host2file().

void cps::FPConv::byterevn type32  w[],
int  n
const [protected]
 

Definition at line 146 of file fpconv.C.

References type32.

Referenced by checksum(), file2host(), and host2file().

void cps::FPConv::byterevn64 type64  w[],
int  n
const [protected]
 

Definition at line 172 of file fpconv.C.

References cps::type64.

Referenced by file2host(), and host2file().

unsigned int cps::FPConv::checksum char *  data,
const int  data_len
const [inline, virtual]
 

Implements cps::DataConversion.

Definition at line 99 of file fpconv.h.

References cps::FP_AUTOMATIC.

unsigned int cps::FPConv::checksum char *  data,
const int  data_len,
const enum FP_FORMAT  dataFormat
const
 

Definition at line 309 of file fpconv.C.

References big_endian(), byterevn(), cps::Verbose::Flow(), cps::FP_FORMAT, size(), type32, uint32_t, and cps::VRB.

void cps::FPConv::conv32to64 type64  tgt[],
type32  src[],
int  n
const [protected]
 

Definition at line 206 of file fpconv.C.

Referenced by file2host(), and host2file().

void cps::FPConv::conv64to32 type32  tgt[],
type64  src[],
int  n
const [protected]
 

Definition at line 199 of file fpconv.C.

Referenced by file2host(), and host2file().

void cps::FPConv::copy32 type32  tgt[],
type32  src[],
int  n
const [protected]
 

Definition at line 219 of file fpconv.C.

Referenced by file2host(), and host2file().

void cps::FPConv::copy64 type64  tgt[],
type64  src[],
int  n
const [protected]
 

Definition at line 213 of file fpconv.C.

Referenced by file2host(), and host2file().

char * cps::FPConv::file2host char *  hbuf,
const char *  fdat,
const int  fdat_len
const [virtual]
 

Implements cps::DataConversion.

Definition at line 41 of file fpconv.C.

References big_endian(), byterevn(), byterevn64(), conv32to64(), conv64to32(), copy32(), copy64(), cps::ERR, ieee2ti(), cps::Error::NotImplemented(), size(), ti2ieee(), type32, and cps::type64.

int cps::FPConv::fileDataSize  )  const [inline, virtual]
 

Implements cps::DataConversion.

Definition at line 97 of file fpconv.h.

int cps::FPConv::fileFpSize  )  const [inline]
 

Definition at line 93 of file fpconv.h.

Referenced by cps::WriteLatticeParallel::write().

char * cps::FPConv::host2file char *  fbuf,
const char *  hdat,
const int  hdat_len
const [virtual]
 

Implements cps::DataConversion.

Definition at line 93 of file fpconv.C.

References big_endian(), byterevn(), byterevn64(), conv32to64(), conv64to32(), copy32(), copy64(), cps::ERR, ieee2ti(), cps::Error::NotImplemented(), size(), ti2ieee(), type32, and cps::type64.

int cps::FPConv::hostDataSize  )  const [inline, virtual]
 

Implements cps::DataConversion.

Definition at line 98 of file fpconv.h.

int cps::FPConv::hostFpSize  )  const [inline]
 

Definition at line 94 of file fpconv.h.

void cps::FPConv::ieee2ti type32 ,
int 
const [protected]
 

Definition at line 502 of file fpconv.C.

References cps::ERR, and cps::Error::NotImplemented().

Referenced by file2host(), and host2file().

const char * cps::FPConv::name const enum FP_FORMAT  format  )  [static]
 

Definition at line 37 of file fpconv.C.

References cps::FP_FORMAT_NAME.

Referenced by testHostFormat().

unsigned int cps::FPConv::posDepCsum char *  data,
const int  data_len,
const int  dimension,
const QioArg qio_arg,
const int  site_id,
const int  global_id
const [inline, virtual]
 

Implements cps::DataConversion.

Definition at line 103 of file fpconv.h.

enum FP_FORMAT cps::FPConv::setFileFormat const enum FP_FORMAT  dataFormat  ) 
 

Definition at line 279 of file fpconv.C.

References cps::Verbose::Flow(), cps::FP_FORMAT, and cps::VRB.

enum FP_FORMAT cps::FPConv::setFileFormat const char *  desc  ) 
 

Definition at line 290 of file fpconv.C.

References cps::Verbose::Flow(), cps::FP_FORMAT, cps::FP_FORMAT_NAME, and cps::VRB.

Referenced by cps::ReadLatticeParallel::read(), cps::LatticeHeader::read(), and cps::WriteLatticeParallel::write().

void cps::FPConv::SimQCDSP int  sim  )  [inline]
 

Definition at line 110 of file fpconv.h.

Referenced by cps::QioControl::SimQCDSP().

int cps::FPConv::size const enum FP_FORMAT  datatype  )  const
 

Definition at line 352 of file fpconv.C.

References cps::FP_IEEE32, cps::FP_IEEE32BIG, cps::FP_IEEE32LITTLE, cps::FP_IEEE64, cps::FP_IEEE64BIG, cps::FP_IEEE64LITTLE, and cps::FP_TIDSP32.

Referenced by checksum(), file2host(), and host2file().

enum FP_FORMAT cps::FPConv::testHostFormat  )  [protected]
 

Definition at line 225 of file fpconv.C.

References cps::Verbose::Flow(), cps::FP_FORMAT, cps::FPConv_ieee32pi_big, name(), uint32_t, and cps::VRB.

Referenced by FPConv().

void cps::FPConv::ti2ieee type32 ,
int 
const [protected]
 

Definition at line 398 of file fpconv.C.

References DEB, cps::MPISCU::printf(), tmpB, and type32.

Referenced by file2host(), and host2file().


The documentation for this class was generated from the following files:
Generated on Sat Oct 10 14:12:07 2009 for Columbia Physics System by  doxygen 1.3.9.1