Skip to content

Commit

Permalink
Fix bug #959
Browse files Browse the repository at this point in the history
swap16 don't produce warnings for arm64-v8a anymore

Signed-off-by: Dmitry Moskalchuk <dm@crystax.net>
  • Loading branch information
dmsck committed Jun 7, 2015
1 parent d75d282 commit f5d4f5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/crystax/include/crystax/arm64/endian.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ static __inline __uint16_t
__bswap16_var(__uint16_t x)
{
register __uint16_t _x = x;
__asm volatile ("rev16 %0, %0" : "+r" (_x));
__asm volatile ("rev16 %w0, %w0" : "+r" (_x));
return _x;
}

Expand Down

0 comments on commit f5d4f5f

Please sign in to comment.