webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Macros
macros.h File Reference

Go to the source code of this file.

Macros

#define n2ln(c, l1, l2, n)
 
#define l2nn(l1, l2, c, n)
 
#define l2n(l, c)
 
#define n2l(c, l)
 

Macro Definition Documentation

◆ l2n

#define l2n (   l,
 
)
Value:
(*((c)++) = (unsigned char)(((l) >> 24L) & 0xff), \
*((c)++) = (unsigned char)(((l) >> 16L) & 0xff), \
*((c)++) = (unsigned char)(((l) >> 8L) & 0xff), \
*((c)++) = (unsigned char)(((l)) & 0xff))
int c
Definition: cpp_unittests.cpp:275

◆ l2nn

#define l2nn (   l1,
  l2,
  c,
  n 
)
Value:
{ \
c += n; \
switch (n) { \
case 8: \
*(--(c)) = (unsigned char)(((l2)) & 0xff); \
case 7: \
*(--(c)) = (unsigned char)(((l2) >> 8) & 0xff); \
case 6: \
*(--(c)) = (unsigned char)(((l2) >> 16) & 0xff); \
case 5: \
*(--(c)) = (unsigned char)(((l2) >> 24) & 0xff); \
case 4: \
*(--(c)) = (unsigned char)(((l1)) & 0xff); \
case 3: \
*(--(c)) = (unsigned char)(((l1) >> 8) & 0xff); \
case 2: \
*(--(c)) = (unsigned char)(((l1) >> 16) & 0xff); \
case 1: \
*(--(c)) = (unsigned char)(((l1) >> 24) & 0xff); \
} \
}
int c
Definition: cpp_unittests.cpp:275
EGLStreamKHR EGLint n
Definition: eglext.h:984

◆ n2l

#define n2l (   c,
 
)
Value:
(l = ((unsigned long)(*((c)++))) << 24L, \
l |= ((unsigned long)(*((c)++))) << 16L, \
l |= ((unsigned long)(*((c)++))) << 8L, \
l |= ((unsigned long)(*((c)++))))
int c
Definition: cpp_unittests.cpp:275
long
Definition: decoder.py:88

◆ n2ln

#define n2ln (   c,
  l1,
  l2,
  n 
)
Value:
{ \
c += n; \
l1 = l2 = 0; \
switch (n) { \
case 8: \
l2 = ((unsigned long)(*(--(c)))); \
case 7: \
l2 |= ((unsigned long)(*(--(c)))) << 8; \
case 6: \
l2 |= ((unsigned long)(*(--(c)))) << 16; \
case 5: \
l2 |= ((unsigned long)(*(--(c)))) << 24; \
case 4: \
l1 = ((unsigned long)(*(--(c)))); \
case 3: \
l1 |= ((unsigned long)(*(--(c)))) << 8; \
case 2: \
l1 |= ((unsigned long)(*(--(c)))) << 16; \
case 1: \
l1 |= ((unsigned long)(*(--(c)))) << 24; \
} \
}
int c
Definition: cpp_unittests.cpp:275
EGLStreamKHR EGLint n
Definition: eglext.h:984
long
Definition: decoder.py:88