Mali OpenCL SDK v1.1.0
 All Classes Files Functions Variables Macros Pages
64_bit_integer.cl File Reference

Go to the source code of this file.

Functions

__kernel void long_vectors (__global uchar *restrict imagePixels, __global ulong *restrict squareOfPixels, __global ulong *restrict sumOfPixels)
 Long data type (64-bit integer) kernel.
 

Function Documentation

__kernel void long_vectors ( __global uchar *restrict  imagePixels,
__global ulong *restrict  squareOfPixels,
__global ulong *restrict  sumOfPixels 
)

Long data type (64-bit integer) kernel.

This kernel loads 8 pixel values to calculate the square of each pixel value. Then it accumulates the square of pixels and the sum of pixels values in the respective accumulators.

Parameters
[in]imagePixelsInput array with image pixels.
[in]squareOfPixelsSum of the square of pixel values.
[out]sumOfPixelsSum of pixel values.

Definition at line 24 of file 64_bit_integer.cl.