static void
_t2(scatter, Scalar, 1)(const Scalar* q, Scalar* p, ptrdiff_t sx)
{
uint x;
for (x = 0; x < 4; x++, p += sx)
*p = *q++;
}
static void
_t2(scatter_partial, Scalar, 1)(const Scalar* q, Scalar* p, size_t nx, ptrdiff_t sx)
{
size_t x;
for (x = 0; x < nx; x++, p += sx)
*p = *q++;
}
static void
_t2(inv_xform, Int, 1)(Int* p)
{
_t1(inv_lift, Int)(p, 1);
}
size_t
_t2(zfp_decode_block_strided, Scalar, 1)(zfp_stream* stream, Scalar* p, ptrdiff_t sx)
{
cache_align_(Scalar block[4]);
size_t bits = _t2(zfp_decode_block, Scalar, 1)(stream, block);
_t2(scatter, Scalar, 1)(block, p, sx);
return bits;
}
size_t
_t2(zfp_decode_partial_block_strided, Scalar, 1)(zfp_stream* stream, Scalar* p, size_t nx, ptrdiff_t sx)
{
cache_align_(Scalar block[4]);
size_t bits = _t2(zfp_decode_block, Scalar, 1)(stream, block);
_t2(scatter_partial, Scalar, 1)(block, p, nx, sx);
return bits;
}