ocb: fix gcc4.8 compiling problem with __ARM_NEON__

Fixes following problem when compiling mosh with gcc4.8 and
__ARM_NEON__ defined by using -121 instead of 135.

ocb.cc: In function 'block double_block(block)':
ocb.cc:263:56: error: narrowing conversion of '135' from
'int' to '__builtin_neon_qi' inside { } is ill-formed in
C++11 [-Werror=narrowing]

Signed-off-by: Pasi Sjöholm <pasi.sjoholm@jollamobile.com>
This commit is contained in:
Pasi Sjöholm
2015-02-03 08:56:48 +02:00
parent c6cd99ba97
commit ff84425885
+1 -1
View File
@@ -260,7 +260,7 @@
}
static inline block double_block(block b)
{
const block mask = {135,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1};
const block mask = {-121,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1};
block tmp = vshrq_n_s8(b,7);
tmp = vandq_s8(tmp, mask);
tmp = vextq_s8(tmp, tmp, 1); /* Rotate high byte to end */