There are two macros that are defined to work with parallelism:
- The
XF_NPIXPERCYCLE(flags)macro resolves to the number of pixels processed per cycle.XF_NPIXPERCYCLE(XF_NPPC1)resolves to 1XF_NPIXPERCYCLE(XF_NPPC2)resolves to 2XF_NPIXPERCYCLE(XF_NPPC4)resolves to 4XF_NPIXPERCYCLE(XF_NPPC8)resolves to 8
- The
XF_BITSHIFT(flags)macro resolves to the number of times to shift the image size to right to arrive at the final data transfer size for parallel processing.XF_BITSHIFT(XF_NPPC1)resolves to 0XF_BITSHIFT(XF_NPPC2)resolves to 1XF_BITSHIFT(XF_NPPC4)resolves to 2XF_BITSHIFT(XF_NPPC8)resolves to 3