hphp/runtime/ext/gd/ext_gd.cpp
static int php_ifd_get32s(void *Long, int motorola_intel) {
  if (motorola_intel) {
    return (((unsigned char *)Long)[0] << 24) |
           (((unsigned char *)Long)[1] << 16) |
           (((unsigned char *)Long)[2] << 8) |
           (((unsigned char *)Long)[3] << 0);
  } else {
    return (((unsigned char *)Long)[3] << 24) |
           (((unsigned char *)Long)[2] << 16) |
           (((unsigned char *)Long)[1] << 8) |
           (((unsigned char *)Long)[0] << 0);
  }
}
/* Convert a 32 bit signed value from file's native byte order */
Convert a 32 bit signed value from file's native byte order
Convert a 32 bit signed value from file ' s native byte order
static int php_ifd_get32s(void *Long, int motorola_intel) {
  if (motorola_intel) {
    return (((unsigned char *)Long)[0] << 24) |
           (((unsigned char *)Long)[1] << 16) |
           (((unsigned char *)Long)[2] << 8) |
           (((unsigned char *)Long)[3] << 0);
  } else {
    return (((unsigned char *)Long)[3] << 24) |
           (((unsigned char *)Long)[2] << 16) |
           (((unsigned char *)Long)[1] << 8) |
           (((unsigned char *)Long)[0] << 0);
  }
}
static int php_ifd_get32s ( void * Long , int motorola_intel ) { if ( motorola_intel ) { return ( ( ( unsigned char * ) Long ) [ 0 ] << 24 ) | ( ( ( unsigned char * ) Long ) [ 1 ] << 16 ) | ( ( ( unsigned char * ) Long ) [ 2 ] << 8 ) | ( ( ( unsigned char * ) Long ) [ 3 ] << 0 ) ; } else { return ( ( ( unsigned char * ) Long ) [ 3 ] << 24 ) | ( ( ( unsigned char * ) Long ) [ 2 ] << 16 ) | ( ( ( unsigned char * ) Long ) [ 1 ] << 8 ) | ( ( ( unsigned char * ) Long ) [ 0 ] << 0 ) ; } }
Convert a 32 bit signed value from file's native byte order
Convert a 32 bit signed value from file ' s native byte order