static inline jushort get_native_u2(address p){ 
   if (HARDWARE_LITTLE_ENDIAN) { 
     return jushort(p[0]) | ( jushort(p[1]) << 8 );
   } else { 
     return get_Java_u2(p);
   }
 }
 // Efficient reading and writing of unaligned unsigned data in
 // platform-specific byte ordering 
 static inline jushort get_Java_u2(address p){ 
     return jushort(p[0] << 8) | ( jushort(p[1]) );
 }
Exemple #3
0
 static inline jushort get_Java_u2(const_address p){ 
     return (jushort) (jushort(p[0] << 8) | ( jushort(p[1]) ));
 }