Diff for /qemu/bswap.h between versions 1.1.1.6 and 1.1.1.7

version 1.1.1.6, 2018/04/24 18:24:25 version 1.1.1.7, 2018/04/24 18:34:17
Line 144  CPU_CONVERT(le, 64, uint64_t) Line 144  CPU_CONVERT(le, 64, uint64_t)
   
 #define cpu_to_be16wu(p, v) cpu_to_be16w(p, v)  #define cpu_to_be16wu(p, v) cpu_to_be16w(p, v)
 #define cpu_to_be32wu(p, v) cpu_to_be32w(p, v)  #define cpu_to_be32wu(p, v) cpu_to_be32w(p, v)
   #define cpu_to_be64wu(p, v) cpu_to_be64w(p, v)
   
 #else  #else
   
Line 201  static inline void cpu_to_be32wu(uint32_ Line 202  static inline void cpu_to_be32wu(uint32_
     p1[3] = v & 0xff;      p1[3] = v & 0xff;
 }  }
   
   static inline void cpu_to_be64wu(uint64_t *p, uint64_t v)
   {
       uint8_t *p1 = (uint8_t *)p;
   
       p1[0] = v >> 56;
       p1[1] = v >> 48;
       p1[2] = v >> 40;
       p1[3] = v >> 32;
       p1[4] = v >> 24;
       p1[5] = v >> 16;
       p1[6] = v >> 8;
       p1[7] = v & 0xff;
   }
   
 #endif  #endif
   
 #ifdef HOST_WORDS_BIGENDIAN  #ifdef HOST_WORDS_BIGENDIAN

Removed from v.1.1.1.6  
changed lines
  Added in v.1.1.1.7


unix.superglobalmegacorp.com