--- yodaUtility/yodaUtility.cpp 2006/04/30 11:08:14 1.1.1.1 +++ yodaUtility/yodaUtility.cpp 2006/06/14 07:21:35 1.2 @@ -318,3 +318,15 @@ //In the end I subtract 10% to the retrieved value return (Int_t)(lastBin*0.90); } + +void Utility::endian_swap(UShort_t& x) { + x = (x>>8) | + (x<<8); + } + +void Utility::endian_swap(UInt_t& x){ + x = (x>>24) | + ((x<<8) & 0x00FF0000) | + ((x>>8) & 0x0000FF00) | + (x<<24); + }