From b32e8fa24e5403d892691a1b1988c75fe779b3e9 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 6 Jul 2019 00:18:53 +0200 Subject: [PATCH] Ditto for NEON. --- client/TracyDxt1.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/client/TracyDxt1.cpp b/client/TracyDxt1.cpp index 8ee3485e..63628058 100644 --- a/client/TracyDxt1.cpp +++ b/client/TracyDxt1.cpp @@ -286,11 +286,10 @@ static tracy_force_inline uint64_t ProcessRGB( const uint8_t* src ) return to565( src[0], src[1], src[2] ); } - uint32x4_t mask = vdupq_n_u32( 0xFFFFFF ); - uint8x16_t l0 = vreinterpretq_u8_u32( vandq_u32( mask, px0 ) ); - uint8x16_t l1 = vreinterpretq_u8_u32( vandq_u32( mask, px1 ) ); - uint8x16_t l2 = vreinterpretq_u8_u32( vandq_u32( mask, px2 ) ); - uint8x16_t l3 = vreinterpretq_u8_u32( vandq_u32( mask, px3 ) ); + uint8x16_t l0 = vreinterpretq_u8_u32( px0 ); + uint8x16_t l1 = vreinterpretq_u8_u32( px1 ); + uint8x16_t l2 = vreinterpretq_u8_u32( px2 ); + uint8x16_t l3 = vreinterpretq_u8_u32( px3 ); uint8x16_t min0 = vminq_u8( l0, l1 ); uint8x16_t min1 = vminq_u8( l2, l3 );