39#if (defined(__linux) || defined(__APPLE__)) && \
40 (defined(__i386__) || defined(__x86_64__)) && \
46#if defined(__INTEL_COMPILER) && __INTEL_COMPILER < 1000
50#if defined(R__USEASMSWAP)
69# if defined(R__USEASMSWAP)
74 const char *sw = (
const char *) intermediary;
87# if defined(R__USEASMSWAP)
89 memcpy(buf, &
x,
sizeof(
x));
92 const UInt_t *intermediary = &
x;
93 const char *sw = (
const char *)intermediary;
100 memcpy(buf, &
x,
sizeof(
UInt_t));
110 const char *sw = (
const char *)intermediary;
138 memcpy(buf+4, &
x, 4);
148 const Long_t *intermediary = &
x;
149 const char *sw = (
const char *)intermediary;
150 if (
sizeof(
Long_t) == 8) {
177 if (
sizeof(
Long_t) == 8) {
191 memcpy(buf+4, &
x, 4);
200# if defined(R__USEASMSWAP)
202 memcpy(buf, &
x,
sizeof(
x));
206 const char *sw = (
const char *)intermediary;
225# if defined(R__USEASMSWAP)
227 memcpy(&i, &
x,
sizeof(
x));
229 memcpy(buf, &i,
sizeof(i));
232 memcpy(
c, &
x,
sizeof(
x));
247# if defined(R__USEASMSWAP)
249 memcpy(&
l, &
x,
sizeof(
x));
251 memcpy(buf, &
l,
sizeof(
l));
254 memcpy(
c, &
x,
sizeof(
x));
285# if defined(R__USEASMSWAP)
287 memcpy(&s, buf,
sizeof(s));
290 char *sw = (
char *)
x;
303# if defined(R__USEASMSWAP)
305 memcpy(&i, buf,
sizeof(i));
308 char *sw =
reinterpret_cast<char *
>(
x);
315 memcpy(
x, buf,
sizeof(
UInt_t));
323 char *sw =
reinterpret_cast<char *
>(
x);
352# if defined(R__USEASMSWAP)
354 memcpy(&
l, buf,
sizeof(
l));
357 char *sw =
reinterpret_cast<char *
>(
x);
376# if defined(R__USEASMSWAP)
378 memcpy(&i, buf,
sizeof(i));
380 memcpy(
x, &i,
sizeof(i));
387 memcpy(
x,
c,
sizeof(
c));
398# if defined(R__USEASMSWAP)
400 memcpy(&
l, buf,
sizeof(
l));
402 memcpy(
x, &
l,
sizeof(
l));
413 memcpy(
x,
c,
sizeof(
c));
437#if defined(R__USEASMSWAP)
440 return (((
x & 0x00ff) << 8) | ((
x & 0xff00) >> 8));
446#if defined(R__USEASMSWAP)
449 return (((
x & 0x000000ffU) << 24) | ((
x & 0x0000ff00U) << 8) |
450 ((
x & 0x00ff0000U) >> 8) | ((
x & 0xff000000U) >> 24));
456#if defined(R__B64) && !defined(_WIN64)
457# if defined(R__USEASMSWAP)
464 char *sb = (
char *)&
x;
482#if defined(R__USEASMSWAP)
489 char *sb = (
char *)&
x;
510#if defined(R__USEASMSWAP)
513 u.i = (((u.i & 0x000000ffU) << 24) | ((u.i & 0x0000ff00U) << 8) |
514 ((u.i & 0x00ff0000U) >> 8) | ((u.i & 0xff000000U) >> 24));
521#if defined(R__USEASMSWAP)
535 char *sb = (
char *)&
x;
UShort_t host2net(UShort_t x)
void frombuf(char *&buf, Bool_t *x)
UShort_t net2host(UShort_t x)
void tobuf(char *&buf, Bool_t x)
Basic types used by ROOT and required by TInterpreter.
unsigned short UShort_t
Unsigned Short integer 2 bytes (unsigned short).
int Int_t
Signed integer 4 bytes (int).
unsigned char UChar_t
Unsigned Character 1 byte (unsigned char).
char Char_t
Character 1 byte (char).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
unsigned long ULong_t
Unsigned long integer 4 bytes (unsigned long). Size depends on architecture.
long Long_t
Signed long integer 4 bytes (long). Size depends on architecture.
bool Bool_t
Boolean (0=false, 1=true) (bool).
short Short_t
Signed Short integer 2 bytes (short).
double Double_t
Double 8 bytes.
long long Long64_t
Portable signed long integer 8 bytes.
unsigned long long ULong64_t
Portable unsigned long integer 8 bytes.
float Float_t
Float 4 bytes (float).