Don't build CUDA modules stubs by default (use `-DBUILD_CUDA_STUBS=ON` if need them)
Remove pre_invalid parameter
Join kernel code for int and float destination types
Small refactoring
Fix pointer conversion
Merge pull request #2871 from vbystricky:oclopt_integral
COMP: Fix problem with narrowing in c++11

modules/core/src/arithm.cpp:345:51:
error: constant expression evaluates to 4294967295 which cannot be narrowed to type 'int' [-Wc++11-narrowing]
static int CV_DECL_ALIGNED(16) v64f_absmask[] = { 0xffffffff, 0x7fffffff, 0xffffffff, 0x7fffffff };
                                                  ^~~~~~~~~~

Converted to unsigned int.  This variable is only used to initialize a bit pattern anywhy for a 128bit type.
Merge pull request #2863 from apavlenko:disable_cuda_stubs_defaults
Merge pull request #2832 from BRAINSia:20140605_Upstream