Ditto for NEON.

This commit is contained in:
Bartosz Taudul 2019-07-06 00:18:53 +02:00
parent d236d4b70f
commit b32e8fa24e

View File

@ -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 );