opencl: replace calls to mathf functions by overloaded function and cast