--- yodaUtility/yodaUtility.h 2006/04/30 11:08:14 1.1 +++ yodaUtility/yodaUtility.h 2006/06/14 07:21:35 1.2 @@ -33,6 +33,21 @@ static TFile* getFile(TString base, TString packetType, TString subType); static Int_t getLastNotZeroBin(TH1 *histo); static Int_t getFirstNotZeroBin(TH1 *histo); + static void endian_swap(UShort_t& x); + static void endian_swap(UInt_t& x); + +/* + inline void endian_swap(ULong64_t& x){ + x = (x>>56) | + ((x<<40) & 0x00FF000000000000) | + ((x<<24) & 0x0000FF0000000000) | + ((x<<8) & 0x000000FF00000000) | + ((x>>8) & 0x00000000FF000000) | + ((x>>24) & 0x0000000000FF0000) | + ((x>>40) & 0x000000000000FF00) | + (x<<56); + } + */ };