24#ifndef MYSQL_SERIALIZATION_BYTE_ORDER_HELPERS_H 
   25#define MYSQL_SERIALIZATION_BYTE_ORDER_HELPERS_H 
   32#ifdef HAVE_ENDIAN_CONVERSION_MACROS 
   51#ifndef WORDS_BIGENDIAN 
   54  x = ((x << 8) & 0xff00ff00ff00ff00ULL) | ((x >> 8) & 0x00ff00ff00ff00ffULL);
 
   55  x = ((x << 16) & 0xffff0000ffff0000ULL) | ((x >> 16) & 0x0000ffff0000ffffULL);
 
   56  return (x << 32) | (x >> 32);
 
   71#ifndef WORDS_BIGENDIAN 
   74  x = ((x << 8) & 0xff00ff00ff00ff00ULL) | ((x >> 8) & 0x00ff00ff00ff00ffULL);
 
   75  x = ((x << 16) & 0xffff0000ffff0000ULL) | ((x >> 16) & 0x0000ffff0000ffffULL);
 
   76  return (x << 32) | (x >> 32);
 
uint64_t htole64(uint64_t x)
Converting a 64 bit integer from host's byte order to little-endian byte order.
Definition: byte_order_helpers.h:70
 
uint64_t le64toh(uint64_t x)
Converting a 64 bit integer from little-endian byte order to host byteorder.
Definition: byte_order_helpers.h:50
 
Include only the necessary part of Sun RPC for Windows builds.
 
Functions for reading and storing in machine-independent format.