summaryrefslogtreecommitdiff
path: root/src/auxiliaryFunctions/includes/abs.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/auxiliaryFunctions/includes/abs.h')
-rw-r--r--src/auxiliaryFunctions/includes/abs.h24
1 files changed, 16 insertions, 8 deletions
diff --git a/src/auxiliaryFunctions/includes/abs.h b/src/auxiliaryFunctions/includes/abs.h
index bd75ba54..00565e39 100644
--- a/src/auxiliaryFunctions/includes/abs.h
+++ b/src/auxiliaryFunctions/includes/abs.h
@@ -13,10 +13,14 @@
#ifndef __ABS_H__
#define __ABS_H__
+#include "dynlib_auxiliaryfunctions.h"
#include "floatComplex.h"
#include "doubleComplex.h"
#include "sqrt.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
/**
** \brief Float Absolute Value function
@@ -24,7 +28,7 @@
** \param in : the float we must determine abs.
** \return -in or in depending on the sign of in.
**/
-float sabss(float in);
+EXTERN_AUXFUNCT float sabss(float in);
/**
** \brief Double Absolute Value function
@@ -32,7 +36,7 @@ float sabss(float in);
** \param in : the double we must determine abs.
** \return -in or +in depending on the abs of in.
**/
-double dabss(double in);
+EXTERN_AUXFUNCT double dabss(double in);
/**
** \brief Float Complex Absolute Value function
@@ -40,7 +44,7 @@ double dabss(double in);
** \param in : the float complex we must determine abs i.e. module.
** \return |in|.
**/
-float cabss(floatComplex in);
+EXTERN_AUXFUNCT float cabss(floatComplex in);
/**
** \brief Double Complex Absolute Value function
@@ -48,7 +52,7 @@ float cabss(floatComplex in);
** \param in : the double complex we must determine abs i.e. module.
** \return |in|.
**/
-double zabss(doubleComplex in);
+EXTERN_AUXFUNCT double zabss(doubleComplex in);
/**
** \brief Float Array Absolute Value function
@@ -56,7 +60,7 @@ double zabss(doubleComplex in);
** \param in : the float array we must determine abs.
** \param out : the float array result.
**/
-void sabsa(float *in, int size, float* out);
+EXTERN_AUXFUNCT void sabsa(float *in, int size, float* out);
/**
** \brief Double Array Absolute Value function
@@ -64,7 +68,7 @@ void sabsa(float *in, int size, float* out);
** \param in : the double array we must determine abs.
** \param out : the double array result.
**/
-void dabsa(double *in, int size, double* out);
+EXTERN_AUXFUNCT void dabsa(double *in, int size, double* out);
/**
** \brief Float Complex Array Absolute Value function
@@ -72,7 +76,7 @@ void dabsa(double *in, int size, double* out);
** \param in : the float complex array we must determine abs i.e. module.
** \param out : the float complex array result i.e out[n] = |in[n]|.
**/
-void cabsa(floatComplex *in, int size, float* out);
+EXTERN_AUXFUNCT void cabsa(floatComplex *in, int size, float* out);
/**
** \brief Double Complex Array Absolute Value function
@@ -80,6 +84,10 @@ void cabsa(floatComplex *in, int size, float* out);
** \param in : the double complex array we must determine abs i.e. module.
** \param out : the double complex array result i.e out[n] = |in[n]|.
**/
-void zabsa(doubleComplex *in, int size, double* out);
+EXTERN_AUXFUNCT void zabsa(doubleComplex *in, int size, double* out);
+
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
#endif /* !__ABS_H__ */