70 static unsigned long int
71 byteflip(
unsigned long int value,
int n)
73 if (n == 2)
return ((value & 0x00ff) << 8) | ((value & 0xff00) >> 8);
74 return ((value & 0x000000ff) << 24) |
75 ((value & 0x0000ff00) << 8) |
76 ((value & 0x00ff0000) >> 8) |
77 ((value & 0xff000000) >> 24);
110 internal_re->
size = byteflip(re->
size,
sizeof(re->
size));
112 internal_re->
flags = (pcre_uint16)byteflip(re->
flags,
sizeof(re->
flags));
130 *internal_study = *study;
131 internal_study->
size = byteflip(study->
size,
sizeof(study->
size));