summaryrefslogtreecommitdiffstats
path: root/server/red_bitmap_utils.h
Commit message (Collapse)AuthorAgeFilesLines
* Move red_bitmap_utils.h->tmpl.cMarc-André Lureau2015-10-291-157/+0
| | | | Acked-by: Frediano Ziglio <fziglio@redhat.com>
* improve performances comparing image pixelsFrediano Ziglio2015-09-041-21/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | This patch contains a bit of small optimizations. It avoid boolean operations which could involve branches replacing with binary operations (equal/all_ident -> some_differences). The other optimization avoids the use of ABS. First the way the macro was used (with a large expression) was not easy to optimize by the compiler. Then instead of using ABS a much simpler range check is used so instead of (ABS(n) >= k) a ((n) <= -k || (n) >= k) is used. This looks small but modern compilers can translate this not in range check in a couple of machine instructions (and a single compare). Using operf on same samples (using spice-server-replay) and trying 2 runs I got run 1 2 ------------------------- before 104441 106267 after 92387 91083 So the performance increase is about 13%. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
* remove unused SAME_PIXEL macroFrediano Ziglio2015-08-261-3/+0
| | | | Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
* Remove trailing blank linesDaniel P. Berrange2012-01-131-1/+0
| | | | Remove any blank lines at the end of all source files
* Fix spelling errors in comments and stringsAlexander Larsson2010-05-211-1/+1
|
* Relicense everything from GPL to LGPL 2.1+Alexander Larsson2010-04-131-9/+9
|
* fresh startYaniv Kamay2009-10-141-0/+162