mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2026-01-08 13:07:17 +00:00
quic: use 32 bit for bppmask
In most occurrences bppmask is converted to 32 bit anyway. In the left one a possible more bigger precision is not needed. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
This commit is contained in:
parent
6a882282f1
commit
a6d6e8435a
@ -168,7 +168,7 @@ struct Encoder {
|
||||
};
|
||||
|
||||
/* bppmask[i] contains i ones as lsb-s */
|
||||
static const unsigned long int bppmask[33] = {
|
||||
static const unsigned int bppmask[33] = {
|
||||
0x00000000, /* [0] */
|
||||
0x00000001, 0x00000003, 0x00000007, 0x0000000f,
|
||||
0x0000001f, 0x0000003f, 0x0000007f, 0x000000ff,
|
||||
@ -329,7 +329,7 @@ static void decorrelate_init(QuicFamily *family, int bpc)
|
||||
|
||||
static void correlate_init(QuicFamily *family, int bpc)
|
||||
{
|
||||
const unsigned long int pixelbitmask = bppmask[bpc];
|
||||
const unsigned int pixelbitmask = bppmask[bpc];
|
||||
unsigned long int s;
|
||||
|
||||
//spice_assert(bpc <= 8);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user