diff options
author | cornet | 2009-04-22 05:54:43 +0000 |
---|---|---|
committer | cornet | 2009-04-22 05:54:43 +0000 |
commit | 879e2ac0a540fa1b199e20d47830aa5eea484a4c (patch) | |
tree | 69ef4242aa8ce27332dec2a27f4e7f10a6f9e8fb /src/operations/includes/division.h | |
parent | 1811fe5588d0cfbb788ab8f477800af3f45dd710 (diff) | |
download | scilab2c-879e2ac0a540fa1b199e20d47830aa5eea484a4c.tar.gz scilab2c-879e2ac0a540fa1b199e20d47830aa5eea484a4c.tar.bz2 scilab2c-879e2ac0a540fa1b199e20d47830aa5eea484a4c.zip |
build with visual studio (dynamic libraries)
Diffstat (limited to 'src/operations/includes/division.h')
-rw-r--r-- | src/operations/includes/division.h | 39 |
1 files changed, 23 insertions, 16 deletions
diff --git a/src/operations/includes/division.h b/src/operations/includes/division.h index 103e1cf2..df4c5d2a 100644 --- a/src/operations/includes/division.h +++ b/src/operations/includes/division.h @@ -13,9 +13,13 @@ #ifndef __DIVISION_H__ #define __DIVISION_H__ +#include "dynlib_operations.h" #include "floatComplex.h" #include "doubleComplex.h" +#ifdef __cplusplus +extern "C" { +#endif /* ** @@ -35,7 +39,7 @@ ** \param in2 : input float. ** \return in1 / in2 = in1 ./ in2. */ -float srdivs (float in1, float in2); +EXTERN_OPERATIONS float srdivs (float in1, float in2); /* ** \brief Compute a right division element ways for floats. @@ -44,7 +48,7 @@ float srdivs (float in1, float in2); ** \param size : size of in2 array = rows*columns. ** \param out : array that contains the division in1 ./ in2. */ -void srdiva (float* in1, float* in2, int size, float* out ); +EXTERN_OPERATIONS void srdiva (float* in1, float* in2, int size, float* out ); /* ** \brief Compute a right division for double. @@ -52,7 +56,7 @@ void srdiva (float* in1, float* in2, int size, float* out ); ** \param in2 : input double. ** \return in1 / in2 = in1 ./ in2. */ -double drdivs (double in1, double in2); +EXTERN_OPERATIONS double drdivs (double in1, double in2); /* ** \brief Compute a right division element ways for double. @@ -61,7 +65,7 @@ double drdivs (double in1, double in2); ** \param size : size of in2 array = rows*columns. ** \param out : array that contains the division in1 ./ in2. */ -void drdiva (double* in1, double* in2, int size, double* out ); +EXTERN_OPERATIONS void drdiva (double* in1, double* in2, int size, double* out ); /* ** \brief Compute a right division for floats complex. @@ -69,7 +73,7 @@ void drdiva (double* in1, double* in2, int size, double* out ); ** \param in2 : input float complex. ** \return in1 / in2 = in1 ./ in2. */ -floatComplex crdivs (floatComplex in1, floatComplex in2); +EXTERN_OPERATIONS floatComplex crdivs (floatComplex in1, floatComplex in2); /* ** \brief Compute a right division element ways for float complex. @@ -78,7 +82,7 @@ floatComplex crdivs (floatComplex in1, floatComplex in2); ** \param size : size of in2 array = rows*columns. ** \param out : array that contains the division in1 ./ in2. */ -void crdiva(floatComplex* in1, floatComplex* in2, int size, floatComplex* out ); +EXTERN_OPERATIONS void crdiva(floatComplex* in1, floatComplex* in2, int size, floatComplex* out ); /* ** \brief Compute a right division for double complex. @@ -86,7 +90,7 @@ void crdiva(floatComplex* in1, floatComplex* in2, int size, floatComplex* out ); ** \param in2 : input double complex. ** \return in1 / in2 = in1 ./ in2. */ -doubleComplex zrdivs (doubleComplex in1, doubleComplex in2); +EXTERN_OPERATIONS doubleComplex zrdivs (doubleComplex in1, doubleComplex in2); /* ** \brief Compute a right division element ways for double complex. @@ -95,7 +99,7 @@ doubleComplex zrdivs (doubleComplex in1, doubleComplex in2); ** \param size : size of in2 array = rows*columns. ** \param out : array that contains the division in1 ./ in2. */ -void zrdiva(doubleComplex* in1, doubleComplex* in2, int size, doubleComplex* out ); +EXTERN_OPERATIONS void zrdiva(doubleComplex* in1, doubleComplex* in2, int size, doubleComplex* out ); /* ** LEFT DIVISION @@ -107,7 +111,7 @@ void zrdiva(doubleComplex* in1, doubleComplex* in2, int size, doubleComplex* out ** \param in2 : input float. ** \return in1 \ in2 = in1 .\ in2. */ -float sldivs (float in1, float in2); +EXTERN_OPERATIONS float sldivs (float in1, float in2); /* ** \brief Compute a left division element ways for floats. @@ -116,7 +120,7 @@ float sldivs (float in1, float in2); ** \param size : size of in2 array = rows*columns. ** \param out : array that contains the division in1 .\ in2. */ -void sldiva (float* in1, float* in2, int size, float* out ); +EXTERN_OPERATIONS void sldiva (float* in1, float* in2, int size, float* out ); /* ** \brief Compute a left division for double. @@ -124,7 +128,7 @@ void sldiva (float* in1, float* in2, int size, float* out ); ** \param in2 : input double. ** \return in1 \ in2 = in1 .\ in2. */ -double dldivs (double in1, double in2); +EXTERN_OPERATIONS double dldivs (double in1, double in2); /* ** \brief Compute a left division element ways for double. @@ -133,7 +137,7 @@ double dldivs (double in1, double in2); ** \param size : size of in2 array = rows*columns. ** \param out : array that contains the division in1 .\ in2. */ -void dldiva (double* in1, double* in2, int size, double* out ); +EXTERN_OPERATIONS void dldiva (double* in1, double* in2, int size, double* out ); /* ** \brief Compute a left division for floats complex. @@ -141,7 +145,7 @@ void dldiva (double* in1, double* in2, int size, double* out ); ** \param in2 : input float complex. ** \return in1 \ in2 = in1 .\ in2. */ -floatComplex cldivs (floatComplex in1, floatComplex in2); +EXTERN_OPERATIONS floatComplex cldivs (floatComplex in1, floatComplex in2); /* ** \brief Compute a left division element ways for float complex. @@ -150,7 +154,7 @@ floatComplex cldivs (floatComplex in1, floatComplex in2); ** \param size : size of in2 array = rows*columns. ** \param out : array that contains the division in1 .\ in2. */ -void cldiva(floatComplex* in1, floatComplex* in2, int size, floatComplex* out ); +EXTERN_OPERATIONS void cldiva(floatComplex* in1, floatComplex* in2, int size, floatComplex* out ); /* ** \brief Compute a left division for double complex. @@ -158,7 +162,7 @@ void cldiva(floatComplex* in1, floatComplex* in2, int size, floatComplex* out ); ** \param in2 : input double complex. ** \return in1 \ in2 = in1 .\ in2. */ -doubleComplex zldivs (doubleComplex in1, doubleComplex in2); +EXTERN_OPERATIONS doubleComplex zldivs (doubleComplex in1, doubleComplex in2); /* ** \brief Compute a left division element ways for double complex. @@ -167,8 +171,11 @@ doubleComplex zldivs (doubleComplex in1, doubleComplex in2); ** \param size : size of in2 array = rows*columns. ** \param out : array that contains the division in1 .\ in2. */ -void zldiva(doubleComplex* in1, doubleComplex* in2, int size, doubleComplex* out ); +EXTERN_OPERATIONS void zldiva(doubleComplex* in1, doubleComplex* in2, int size, doubleComplex* out ); +#ifdef __cplusplus +} /* extern "C" */ +#endif #endif /* !__DIVISION_H__ */ |