GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TLstEvent.cxx File Reference
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <cstring>
#include <cassert>
#include "TLstEvent.h"
+ Include dependency graph for TLstEvent.cxx:

Go to the source code of this file.

Macros

#define DWORD_SWAP(x)
 
#define QWORD_SWAP(x)
 
#define WORD_SWAP(x)
 

Macro Definition Documentation

◆ DWORD_SWAP

#define DWORD_SWAP ( x)
Value:
{ \
BYTE _tmp; \
_tmp = *((BYTE*)(x)); \
*((BYTE*)(x)) = *(((BYTE*)(x)) + 3); \
*(((BYTE*)(x)) + 3) = _tmp; \
_tmp = *(((BYTE*)(x)) + 1); \
*(((BYTE*)(x)) + 1) = *(((BYTE*)(x)) + 2); \
*(((BYTE*)(x)) + 2) = _tmp; \
}
uint8_t BYTE

Byte swapping routine.

Definition at line 114 of file TLstEvent.cxx.

◆ QWORD_SWAP

#define QWORD_SWAP ( x)
Value:
{ \
BYTE _tmp; \
_tmp = *((BYTE*)(x)); \
*((BYTE*)(x)) = *(((BYTE*)(x)) + 7); \
*(((BYTE*)(x)) + 7) = _tmp; \
_tmp = *(((BYTE*)(x)) + 1); \
*(((BYTE*)(x)) + 1) = *(((BYTE*)(x)) + 6); \
*(((BYTE*)(x)) + 6) = _tmp; \
_tmp = *(((BYTE*)(x)) + 2); \
*(((BYTE*)(x)) + 2) = *(((BYTE*)(x)) + 5); \
*(((BYTE*)(x)) + 5) = _tmp; \
_tmp = *(((BYTE*)(x)) + 3); \
*(((BYTE*)(x)) + 3) = *(((BYTE*)(x)) + 4); \
*(((BYTE*)(x)) + 4) = _tmp; \
}

Byte swapping routine.

Definition at line 95 of file TLstEvent.cxx.

◆ WORD_SWAP

#define WORD_SWAP ( x)
Value:
{ \
BYTE _tmp; \
_tmp = *((BYTE*)(x)); \
*((BYTE*)(x)) = *(((BYTE*)(x)) + 1); \
*(((BYTE*)(x)) + 1) = _tmp; \
}

Byte swapping routine.

Definition at line 127 of file TLstEvent.cxx.