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