| 540 | * @brief Logical shift right. |
| 541 | */ |
| 542 | template <int s> ASTCENC_SIMD_INLINE vint4 lsr(vint4 a) |
| 543 | { |
| 544 | uint32x4_t ua = vreinterpretq_u32_s32(a.m); |
| 545 | ua = vshlq_u32(ua, vdupq_n_s32(-s)); |
| 546 | return vint4(vreinterpretq_s32_u32(ua)); |
| 547 | } |
| 548 | |
| 549 | /** |
| 550 | * @brief Arithmetic shift right. |