summaryrefslogtreecommitdiffstats
path: root/xbzrle.c
Commit message (Collapse)AuthorAgeFilesLines
* xbzrle.c: Avoid undefined behaviour with signed arithmeticPeter Maydell2014-04-181-3/+5
| | | | | | | | | | | Use unsigned types for doing bitwise arithmetic in the xzbrle calculations, to avoid undefined behaviour: xbzrle.c:99:49: runtime error: left shift of 72340172838076673 by 7 places cannot be represented in type 'long' Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
* Move XBZRLE encoding code to a separate file to allow testingOrit Wasserman2013-02-011-0/+173
Signed-off-by: Orit Wasserman <owasserm@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
OpenPOWER on IntegriCloud