MCPcopy Create free account
hub / github.com/ARM-software/astc-encoder / lsr

Function lsr

Source/astcenc_vecmathlib_neon_4.h:542–547  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

540 * @brief Logical shift right.
541 */
542template <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.

Callers

nothing calls this directly

Calls 1

vint4Class · 0.70

Tested by

no test coverage detected