From 2e7a35e6eb79d0fe2c7017ee3e0a14ea082d86c4 Mon Sep 17 00:00:00 2001 From: cornet Date: Wed, 22 Apr 2009 06:43:20 +0000 Subject: extern "C" on header --- src/elementaryFunctions/elementaryFunctions.vcproj | 16 ++++++++++++++++ src/elementaryFunctions/includes/acos.h | 9 +++++++++ src/elementaryFunctions/includes/acosh.h | 11 +++++++++++ src/elementaryFunctions/includes/asin.h | 10 ++++++++++ src/elementaryFunctions/includes/asinh.h | 10 ++++++++++ src/elementaryFunctions/includes/atan.h | 10 ++++++++++ src/elementaryFunctions/includes/atan2.h | 8 ++++++++ src/elementaryFunctions/includes/atanh.h | 10 ++++++++++ src/elementaryFunctions/includes/ceil.h | 9 +++++++++ src/elementaryFunctions/includes/cos.h | 8 ++++++++ src/elementaryFunctions/includes/cosh.h | 9 +++++++++ src/elementaryFunctions/includes/exp.h | 9 +++++++++ src/elementaryFunctions/includes/exp10.h | 9 +++++++++ src/elementaryFunctions/includes/fix.h | 8 ++++++++ src/elementaryFunctions/includes/floor.h | 8 ++++++++ src/elementaryFunctions/includes/int.h | 8 ++++++++ src/elementaryFunctions/includes/lnp1m1.h | 9 +++++++++ src/elementaryFunctions/includes/log.h | 8 ++++++++ src/elementaryFunctions/includes/log10.h | 8 ++++++++ src/elementaryFunctions/includes/log1p.h | 7 +++++++ src/elementaryFunctions/includes/pow.h | 8 ++++++++ src/elementaryFunctions/includes/round.h | 7 +++++++ src/elementaryFunctions/includes/sin.h | 8 ++++++++ src/elementaryFunctions/includes/sinh.h | 8 ++++++++ src/elementaryFunctions/includes/sqrt.h | 8 ++++++++ src/elementaryFunctions/includes/tan.h | 8 ++++++++ src/elementaryFunctions/includes/tanh.h | 8 ++++++++ 27 files changed, 239 insertions(+) (limited to 'src') diff --git a/src/elementaryFunctions/elementaryFunctions.vcproj b/src/elementaryFunctions/elementaryFunctions.vcproj index 4a710999..d28a0948 100644 --- a/src/elementaryFunctions/elementaryFunctions.vcproj +++ b/src/elementaryFunctions/elementaryFunctions.vcproj @@ -3988,6 +3988,22 @@ + + + + + + + +#ifdef __cplusplus +extern "C" { +#endif + /* ** Compute arctan with two parameters . */ @@ -43,6 +48,9 @@ EXTERN_ELEMFUNCT void satan2a (float* in1, int size1, float* in2, int size2, flo */ EXTERN_ELEMFUNCT void datan2a (double* in1, int size1, double* in2, int size2, double* out) ; +#ifdef __cplusplus +} /* extern "C" */ +#endif diff --git a/src/elementaryFunctions/includes/atanh.h b/src/elementaryFunctions/includes/atanh.h index 12a4c487..32fe1789 100644 --- a/src/elementaryFunctions/includes/atanh.h +++ b/src/elementaryFunctions/includes/atanh.h @@ -17,6 +17,11 @@ #include "floatComplex.h" #include "doubleComplex.h" + +#ifdef __cplusplus +extern "C" { +#endif + /* ** Compute Hyperbolic ArcTangeant for different types . */ @@ -77,5 +82,10 @@ EXTERN_ELEMFUNCT void catanha(floatComplex* in, int size, floatComplex* out); */ EXTERN_ELEMFUNCT void zatanha(doubleComplex* in, int size, doubleComplex* out); +#ifdef __cplusplus +} /* extern "C" */ +#endif + + #endif /* !__ATANH_H__ */ diff --git a/src/elementaryFunctions/includes/ceil.h b/src/elementaryFunctions/includes/ceil.h index 1a0fb5c9..960b8b3b 100644 --- a/src/elementaryFunctions/includes/ceil.h +++ b/src/elementaryFunctions/includes/ceil.h @@ -17,6 +17,10 @@ #include "floatComplex.h" #include "doubleComplex.h" + +#ifdef __cplusplus +extern "C" { +#endif /* ceil(x) returns an integer matrix made of rounded up elements */ @@ -37,5 +41,10 @@ EXTERN_ELEMFUNCT void cceila(floatComplex* in, int size, floatComplex* out); EXTERN_ELEMFUNCT void zceila(doubleComplex* in, int size, doubleComplex* out); +#ifdef __cplusplus +} /* extern "C" */ +#endif + + #endif /* !__CEIL_H__ */ diff --git a/src/elementaryFunctions/includes/cos.h b/src/elementaryFunctions/includes/cos.h index 65f85e33..5d573b1e 100644 --- a/src/elementaryFunctions/includes/cos.h +++ b/src/elementaryFunctions/includes/cos.h @@ -17,6 +17,9 @@ #include "floatComplex.h" #include "doubleComplex.h" +#ifdef __cplusplus +extern "C" { +#endif /* ** Compute Cosine for different types . */ @@ -77,4 +80,9 @@ EXTERN_ELEMFUNCT void ccosa(floatComplex* in, int size, floatComplex* out); */ EXTERN_ELEMFUNCT void zcosa(doubleComplex* in, int size, doubleComplex* out); +#ifdef __cplusplus +} /* extern "C" */ +#endif + + #endif /* !__COS_H__ */ diff --git a/src/elementaryFunctions/includes/cosh.h b/src/elementaryFunctions/includes/cosh.h index 97d6d5e0..0cbf8eb4 100644 --- a/src/elementaryFunctions/includes/cosh.h +++ b/src/elementaryFunctions/includes/cosh.h @@ -17,6 +17,10 @@ #include "floatComplex.h" #include "doubleComplex.h" + +#ifdef __cplusplus +extern "C" { +#endif /* ** Compute Cosine for different types . */ @@ -77,5 +81,10 @@ EXTERN_ELEMFUNCT void ccosha(floatComplex* in, int size, floatComplex* out); */ EXTERN_ELEMFUNCT void zcosha(doubleComplex* in, int size, doubleComplex* out); +#ifdef __cplusplus +} /* extern "C" */ +#endif + + #endif /* !__COSH_H__ */ diff --git a/src/elementaryFunctions/includes/exp.h b/src/elementaryFunctions/includes/exp.h index 25b13141..297a5769 100644 --- a/src/elementaryFunctions/includes/exp.h +++ b/src/elementaryFunctions/includes/exp.h @@ -17,6 +17,10 @@ #include "floatComplex.h" #include "doubleComplex.h" + +#ifdef __cplusplus +extern "C" { +#endif /* ** Compute Exponential for different types . */ @@ -77,5 +81,10 @@ EXTERN_ELEMFUNCT void cexpa(floatComplex* in, int size, floatComplex* out); */ EXTERN_ELEMFUNCT void zexpa(doubleComplex* in, int size, doubleComplex* out); +#ifdef __cplusplus +} /* extern "C" */ +#endif + + #endif /* !__EXP_H__ */ diff --git a/src/elementaryFunctions/includes/exp10.h b/src/elementaryFunctions/includes/exp10.h index 7d50871f..56a1d999 100644 --- a/src/elementaryFunctions/includes/exp10.h +++ b/src/elementaryFunctions/includes/exp10.h @@ -17,6 +17,10 @@ #include "floatComplex.h" #include "doubleComplex.h" + +#ifdef __cplusplus +extern "C" { +#endif /* ** Compute 10 based Exponential for different types . */ @@ -77,5 +81,10 @@ EXTERN_ELEMFUNCT void cexp10a(floatComplex* in, int size, floatComplex* out); */ EXTERN_ELEMFUNCT void zexp10a(doubleComplex* in, int size, doubleComplex* out); +#ifdef __cplusplus +} /* extern "C" */ +#endif + + #endif /* !__EXP10_H__ */ diff --git a/src/elementaryFunctions/includes/fix.h b/src/elementaryFunctions/includes/fix.h index 7c5bb20a..504a63c1 100644 --- a/src/elementaryFunctions/includes/fix.h +++ b/src/elementaryFunctions/includes/fix.h @@ -17,6 +17,9 @@ #include "floatComplex.h" #include "doubleComplex.h" +#ifdef __cplusplus +extern "C" { +#endif /* fix(x) returns an integer matrix made of nearest rounded integers toward zero,i.e, y=sign(x).*floor(abs(x)). Same as int. In these functions, I take the formula : @@ -40,5 +43,10 @@ EXTERN_ELEMFUNCT void cfixa(floatComplex* in, int size, floatComplex* out); EXTERN_ELEMFUNCT void zfixa(doubleComplex* in, int size, doubleComplex* out); +#ifdef __cplusplus +} /* extern "C" */ +#endif + + #endif /* !__FIX_H__ */ diff --git a/src/elementaryFunctions/includes/floor.h b/src/elementaryFunctions/includes/floor.h index a3de3717..971cdf65 100644 --- a/src/elementaryFunctions/includes/floor.h +++ b/src/elementaryFunctions/includes/floor.h @@ -17,6 +17,9 @@ #include "floatComplex.h" #include "doubleComplex.h" +#ifdef __cplusplus +extern "C" { +#endif /* floor(x) returns an integer matrix made of nearest rounded down integers. */ @@ -37,5 +40,10 @@ EXTERN_ELEMFUNCT void cfloora(floatComplex* in, int size, floatComplex* out); EXTERN_ELEMFUNCT void zfloora(doubleComplex* in, int size, doubleComplex* out); +#ifdef __cplusplus +} /* extern "C" */ +#endif + + #endif /* !__FLOOR_H__ */ diff --git a/src/elementaryFunctions/includes/int.h b/src/elementaryFunctions/includes/int.h index 6614fcfe..53985887 100644 --- a/src/elementaryFunctions/includes/int.h +++ b/src/elementaryFunctions/includes/int.h @@ -17,6 +17,9 @@ #include "floatComplex.h" #include "doubleComplex.h" +#ifdef __cplusplus +extern "C" { +#endif /* int(X) returns the integer part of the real matrix X. Same as fix. */ @@ -37,5 +40,10 @@ EXTERN_ELEMFUNCT void cinta(floatComplex* in, int size, floatComplex* out); EXTERN_ELEMFUNCT void zinta(doubleComplex* in, int size, doubleComplex* out); +#ifdef __cplusplus +} /* extern "C" */ +#endif + + #endif /* !__INT_H__ */ diff --git a/src/elementaryFunctions/includes/lnp1m1.h b/src/elementaryFunctions/includes/lnp1m1.h index c05257eb..e5f37515 100644 --- a/src/elementaryFunctions/includes/lnp1m1.h +++ b/src/elementaryFunctions/includes/lnp1m1.h @@ -17,6 +17,9 @@ #include "floatComplex.h" #include "doubleComplex.h" +#ifdef __cplusplus +extern "C" { +#endif /* ** Compute v = log ( (1 + s)/(1 - s) ) for different types . */ @@ -33,5 +36,11 @@ EXTERN_ELEMFUNCT float slnp1m1s(float in); */ EXTERN_ELEMFUNCT double dlnp1m1s(double in); + +#ifdef __cplusplus +} /* extern "C" */ +#endif + + #endif /* !__LNP1M1_H__ */ diff --git a/src/elementaryFunctions/includes/log.h b/src/elementaryFunctions/includes/log.h index 890f8eca..9fb5e75b 100644 --- a/src/elementaryFunctions/includes/log.h +++ b/src/elementaryFunctions/includes/log.h @@ -17,6 +17,9 @@ #include "floatComplex.h" #include "doubleComplex.h" +#ifdef __cplusplus +extern "C" { +#endif /* ** Compute Logarithm for different types . */ @@ -77,5 +80,10 @@ EXTERN_ELEMFUNCT void cloga(floatComplex* in, int size, floatComplex* out); */ EXTERN_ELEMFUNCT void zloga(doubleComplex* in, int size, doubleComplex* out); +#ifdef __cplusplus +} /* extern "C" */ +#endif + + #endif /* !__LOG_H__ */ diff --git a/src/elementaryFunctions/includes/log10.h b/src/elementaryFunctions/includes/log10.h index 89324179..a595424e 100644 --- a/src/elementaryFunctions/includes/log10.h +++ b/src/elementaryFunctions/includes/log10.h @@ -17,6 +17,9 @@ #include "floatComplex.h" #include "doubleComplex.h" +#ifdef __cplusplus +extern "C" { +#endif /* ** Compute Ten based Logarithm for different types . */ @@ -77,5 +80,10 @@ EXTERN_ELEMFUNCT void clog10a(floatComplex* in, int size, floatComplex* out); */ EXTERN_ELEMFUNCT void zlog10a(doubleComplex* in, int size, doubleComplex* out); +#ifdef __cplusplus +} /* extern "C" */ +#endif + + #endif /* !__LOG10_H__ */ diff --git a/src/elementaryFunctions/includes/log1p.h b/src/elementaryFunctions/includes/log1p.h index 82ba3008..58b93d07 100644 --- a/src/elementaryFunctions/includes/log1p.h +++ b/src/elementaryFunctions/includes/log1p.h @@ -17,6 +17,9 @@ #include "floatComplex.h" #include "doubleComplex.h" +#ifdef __cplusplus +extern "C" { +#endif /* ** Compute Logarithm for different types . */ @@ -77,5 +80,9 @@ EXTERN_ELEMFUNCT void clog1pa(floatComplex* in, int size, floatComplex* out); */ EXTERN_ELEMFUNCT void zlog1pa(doubleComplex* in, int size, doubleComplex* out); +#ifdef __cplusplus +} /* extern "C" */ +#endif + #endif /* !__LOG1P_H__ */ diff --git a/src/elementaryFunctions/includes/pow.h b/src/elementaryFunctions/includes/pow.h index f1d3191f..ec8216d8 100644 --- a/src/elementaryFunctions/includes/pow.h +++ b/src/elementaryFunctions/includes/pow.h @@ -16,6 +16,9 @@ #include "dynlib_elementaryfunctions.h" #include "multiplication.h" +#ifdef __cplusplus +extern "C" { +#endif EXTERN_ELEMFUNCT float spows(float value, float expand); EXTERN_ELEMFUNCT double dpows(double value, double expand); @@ -32,4 +35,9 @@ EXTERN_ELEMFUNCT void cpowa(floatComplex *value, int size, floatComplex* expand EXTERN_ELEMFUNCT void zpowa(doubleComplex *value, int size, doubleComplex* expand, doubleComplex *out); +#ifdef __cplusplus +} /* extern "C" */ +#endif + + #endif /* !__POW_H__ */ diff --git a/src/elementaryFunctions/includes/round.h b/src/elementaryFunctions/includes/round.h index edb6ee62..1c3c0cea 100644 --- a/src/elementaryFunctions/includes/round.h +++ b/src/elementaryFunctions/includes/round.h @@ -17,6 +17,9 @@ #include "floatComplex.h" #include "doubleComplex.h" +#ifdef __cplusplus +extern "C" { +#endif /* round(x) rounds the elements of x to the nearest integers. */ @@ -37,5 +40,9 @@ EXTERN_ELEMFUNCT void crounda(floatComplex* in, int size, floatComplex* out); EXTERN_ELEMFUNCT void zrounda(doubleComplex* in, int size, doubleComplex* out); +#ifdef __cplusplus +} /* extern "C" */ +#endif + #endif /* !__ROUND_H__ */ diff --git a/src/elementaryFunctions/includes/sin.h b/src/elementaryFunctions/includes/sin.h index c0d48ae3..198b0665 100644 --- a/src/elementaryFunctions/includes/sin.h +++ b/src/elementaryFunctions/includes/sin.h @@ -17,6 +17,9 @@ #include "floatComplex.h" #include "doubleComplex.h" +#ifdef __cplusplus +extern "C" { +#endif /* ** Compute Sine for different types . */ @@ -77,5 +80,10 @@ EXTERN_ELEMFUNCT void csina(floatComplex* in, int size, floatComplex* out); */ EXTERN_ELEMFUNCT void zsina(doubleComplex* in, int size, doubleComplex* out); +#ifdef __cplusplus +} /* extern "C" */ +#endif + + #endif /* !__SIN_H__ */ diff --git a/src/elementaryFunctions/includes/sinh.h b/src/elementaryFunctions/includes/sinh.h index 31eb1924..c052a901 100644 --- a/src/elementaryFunctions/includes/sinh.h +++ b/src/elementaryFunctions/includes/sinh.h @@ -17,6 +17,9 @@ #include "floatComplex.h" #include "doubleComplex.h" +#ifdef __cplusplus +extern "C" { +#endif /* ** Compute Sine for different types . */ @@ -77,4 +80,9 @@ EXTERN_ELEMFUNCT void csinha(floatComplex* in, int size, floatComplex* out); */ EXTERN_ELEMFUNCT void zsinha(doubleComplex* in, int size, doubleComplex* out); +#ifdef __cplusplus +} /* extern "C" */ +#endif + + #endif /* !__SINH_H__ */ diff --git a/src/elementaryFunctions/includes/sqrt.h b/src/elementaryFunctions/includes/sqrt.h index 048b1a48..7885c9c2 100644 --- a/src/elementaryFunctions/includes/sqrt.h +++ b/src/elementaryFunctions/includes/sqrt.h @@ -17,6 +17,9 @@ #include "floatComplex.h" #include "doubleComplex.h" +#ifdef __cplusplus +extern "C" { +#endif /* ** Compute Square Root for different types . */ @@ -77,4 +80,9 @@ EXTERN_ELEMFUNCT void csqrta(floatComplex* in, int size, floatComplex* out); */ EXTERN_ELEMFUNCT void zsqrta(doubleComplex* in, int size, doubleComplex* out); +#ifdef __cplusplus +} /* extern "C" */ +#endif + + #endif /* !__SQRT_H__ */ diff --git a/src/elementaryFunctions/includes/tan.h b/src/elementaryFunctions/includes/tan.h index 6e3a434b..77ef7868 100644 --- a/src/elementaryFunctions/includes/tan.h +++ b/src/elementaryFunctions/includes/tan.h @@ -17,6 +17,9 @@ #include "floatComplex.h" #include "doubleComplex.h" +#ifdef __cplusplus +extern "C" { +#endif /* ** Compute Tangeant for different types . */ @@ -77,5 +80,10 @@ EXTERN_ELEMFUNCT void ctana(floatComplex* in, int size, floatComplex* out); */ EXTERN_ELEMFUNCT void ztana(doubleComplex* in, int size, doubleComplex* out); +#ifdef __cplusplus +} /* extern "C" */ +#endif + + #endif /* !__TAN_H__ */ diff --git a/src/elementaryFunctions/includes/tanh.h b/src/elementaryFunctions/includes/tanh.h index 9f3dae52..9ff440cf 100644 --- a/src/elementaryFunctions/includes/tanh.h +++ b/src/elementaryFunctions/includes/tanh.h @@ -17,6 +17,9 @@ #include "floatComplex.h" #include "doubleComplex.h" +#ifdef __cplusplus +extern "C" { +#endif /* ** Compute Hyperbolic Tangeant for different types . */ @@ -77,4 +80,9 @@ EXTERN_ELEMFUNCT void ctanha(floatComplex* in, int size, floatComplex* out); */ EXTERN_ELEMFUNCT void ztanha(doubleComplex* in, int size, doubleComplex* out); +#ifdef __cplusplus +} /* extern "C" */ +#endif + + #endif /* !__TANH_H__ */ -- cgit