X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=WCudaMSE%2FTuto_CppTest%2Fsrc%2Fcpp%2Fcore%2Fstandard%2Fscalar%2Fscalar.cpp;fp=WCudaMSE%2FTuto_CppTest%2Fsrc%2Fcpp%2Fcore%2Fstandard%2Fscalar%2Fscalar.cpp;h=aef2b22cc7e68eea415ac892189e82c21e61cb05;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git diff --git a/WCudaMSE/Tuto_CppTest/src/cpp/core/standard/scalar/scalar.cpp b/WCudaMSE/Tuto_CppTest/src/cpp/core/standard/scalar/scalar.cpp new file mode 100755 index 0000000..aef2b22 --- /dev/null +++ b/WCudaMSE/Tuto_CppTest/src/cpp/core/standard/scalar/scalar.cpp @@ -0,0 +1,24 @@ +#include "scalar.h" + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +double sum(double x1, double x2) + { + return x1 + x2; + } + +double fois(double x1, double x2) + { + return x1 * x2; + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ +