Added restrict to pointers passed to core CN kernels.