Skip to content
  • Peter Xu's avatar
    bitmap: provide to_le/from_le helpers · d7788151
    Peter Xu authored
    
    
    Provide helpers to convert bitmaps to little endian format. It can be
    used when we want to send one bitmap via network to some other hosts.
    
    One thing to mention is that, these helpers only solve the problem of
    endianess, but it does not solve the problem of different word size on
    machines (the bitmaps managing same count of bits may contains different
    size when malloced). So we need to take care of the size alignment issue
    on the callers for now.
    
    Signed-off-by: default avatarPeter Xu <peterx@redhat.com>
    Reviewed-by: default avatarJuan Quintela <quintela@redhat.com>
    Signed-off-by: default avatarJuan Quintela <quintela@redhat.com>
    d7788151