fixed some arithmetical functions in OpenCL module