const AliHLTOUT::AliHLTOUTHandlerListEntry AliHLTOUT::AliHLTOUTHandlerListEntry::fgkVoidHandlerListEntry;
-AliHLTUInt64_t AliHLTOUT::Swap64(AliHLTUInt64_t src)
+AliHLTUInt64_t AliHLTOUT::ByteSwap64(AliHLTUInt64_t src)
{
// see header file for class documentation
return ((src & 0xFFULL) << 56) |
((src & 0xFF00000000000000ULL) >> 56);
}
-AliHLTUInt32_t AliHLTOUT::Swap32(AliHLTUInt32_t src)
+AliHLTUInt32_t AliHLTOUT::ByteSwap32(AliHLTUInt32_t src)
{
// see header file for class documentation
return ((src & 0xFFULL) << 24) |
/**
* Helper function to byte swap a 64 bit value.
*/
- static AliHLTUInt64_t Swap64(AliHLTUInt64_t src);
+ static AliHLTUInt64_t ByteSwap64(AliHLTUInt64_t src);
/**
* Helper function to byte swap a 32 bit value.
*/
- static AliHLTUInt32_t Swap32(AliHLTUInt32_t src);
+ static AliHLTUInt32_t ByteSwap32(AliHLTUInt32_t src);
protected:
/**
homer_uint32 origin=pReader->GetBlockDataOrigin( i );
homer_uint32 spec=pReader->GetBlockDataSpec( i );
AliHLTComponentDataType dt;
- AliHLTComponent::SetDataType(dt, Swap64(id), Swap32(origin));
+ AliHLTComponent::SetDataType(dt, ByteSwap64(id), ByteSwap32(origin));
AliHLTOUTBlockDescriptor desc(dt, spec, offset|i);
HLTDebug("adding block %d: %s %#x", i, AliHLTComponent::DataType2Text(dt).c_str(), spec);
iResult=AddBlockDescriptor(desc);
// check for the HOME descriptor type id
AliHLTUInt64_t* pHomerDesc=reinterpret_cast<AliHLTUInt64_t*>(pSrc+offset);
if (*(pHomerDesc+kID_64b_Offset) != HOMER_BLOCK_DESCRIPTOR_TYPEID &&
- Swap64(*(pHomerDesc+kID_64b_Offset)) != HOMER_BLOCK_DESCRIPTOR_TYPEID) {
+ ByteSwap64(*(pHomerDesc+kID_64b_Offset)) != HOMER_BLOCK_DESCRIPTOR_TYPEID) {
HLTWarning("format error: can not find HOMER block descriptor typid, skipping this data block");
return NULL;
}
homer_uint64 origin=0;
memcpy(&id, blocks[n].fDataType.fID, sizeof(homer_uint64));
memcpy(((AliHLTUInt8_t*)&origin)+sizeof(homer_uint32), blocks[n].fDataType.fOrigin, sizeof(homer_uint32));
- homerDescriptor.SetType(AliHLTOUT::Swap64(id));
- homerDescriptor.SetSubType1(AliHLTOUT::Swap32(origin));
+ homerDescriptor.SetType(AliHLTOUT::ByteSwap64(id));
+ homerDescriptor.SetSubType1(AliHLTOUT::ByteSwap32(origin));
homerDescriptor.SetSubType2(blocks[n].fSpecification);
homerDescriptor.SetBlockSize(blocks[n].fSize);
int writerNo=ShuffleWriters(fWriters, blocks[n].fSize);