Skip to content

Commit

Permalink
Fixed zmbv_endian_convert_generic() for RGB15 and RGB16 formats.
Browse files Browse the repository at this point in the history
  • Loading branch information
salass00 committed Oct 3, 2016
1 parent 8cd1bd9 commit b8a392a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/zmbv.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ static void zmbv_endian_convert_generic(const struct zmbv_state *state,
for (j = 0; j != width; j++) {
uint32 x = *row;
__asm__("rlwinm %0,%1,8,0,31\n\t"
"rlwimi %0,%1,16,8,15\n\t"
"rlwimi %0,%1,16,24,31"
"rlwimi %0,%1,24,8,15\n\t"
"rlwimi %0,%1,24,24,31"
: "=&r" (x)
: "r" (x));
*row++ = x;
Expand Down

0 comments on commit b8a392a

Please sign in to comment.