summaryrefslogtreecommitdiff
path: root/src/c/elementaryFunctions/interfaces
diff options
context:
space:
mode:
authorsiddhu89902017-06-21 15:46:02 +0530
committersiddhu89902017-06-21 15:46:02 +0530
commit7dd99346700740df9480b1f47221e24afc32371d (patch)
tree41b5094514f9a62d40483a1b6c0481c115220c04 /src/c/elementaryFunctions/interfaces
parentadbc46709966e50b3fed6ff061afff9e59d4b79c (diff)
parent061f07929cc984788154bc296c6cc440ef72a3c6 (diff)
downloadscilab2c-7dd99346700740df9480b1f47221e24afc32371d.tar.gz
scilab2c-7dd99346700740df9480b1f47221e24afc32371d.tar.bz2
scilab2c-7dd99346700740df9480b1f47221e24afc32371d.zip
Merged Ankit's work, signal processing and string functions
Diffstat (limited to 'src/c/elementaryFunctions/interfaces')
-rw-r--r--src/c/elementaryFunctions/interfaces/int_gcd.h22
-rw-r--r--src/c/elementaryFunctions/interfaces/int_lcm.h27
-rw-r--r--src/c/elementaryFunctions/interfaces/int_sinc.h19
3 files changed, 57 insertions, 11 deletions
diff --git a/src/c/elementaryFunctions/interfaces/int_gcd.h b/src/c/elementaryFunctions/interfaces/int_gcd.h
index c2135b70..f3e117c5 100644
--- a/src/c/elementaryFunctions/interfaces/int_gcd.h
+++ b/src/c/elementaryFunctions/interfaces/int_gcd.h
@@ -1,25 +1,25 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+ /* Copyright (C) 2016 - IIT Bombay - FOSSEE
This file must be used under the terms of the CeCILL.
This source file is licensed as described in the file COPYING, which
you should have received as part of this distribution. The terms
are also available at
http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Ukasha Noor
+ Author: Ankit Raj
Organization: FOSSEE, IIT Bombay
Email: toolbox@scilab.in
-*/
-
-/* THIS IS AN AUTOMATICALLY GENERATED FILE : DO NOT EDIT BY HAND. */
-
+ */
#ifndef __INT_GCD_H__
#define __INT_GCD_H__
-#include "gcd.h"
-
-#define u82gcdu80(in,size) u8gcds(in,size)
+ #ifdef __cplusplus
+ extern "C" {
+ #endif
-#define d2gcdd2(in,size,out) dgcda(in,size[0]*size[1],out)
+#define u82gcdu80(in,size) u8gcda(in,size[1])
-#endif
+ #ifdef __cplusplus
+ } /* extern "C" */
+ #endif
+#endif /*__INT_GCD_H__*/
diff --git a/src/c/elementaryFunctions/interfaces/int_lcm.h b/src/c/elementaryFunctions/interfaces/int_lcm.h
new file mode 100644
index 00000000..2ef1a081
--- /dev/null
+++ b/src/c/elementaryFunctions/interfaces/int_lcm.h
@@ -0,0 +1,27 @@
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+
+ This file must be used under the terms of the CeCILL.
+ This source file is licensed as described in the file COPYING, which
+ you should have received as part of this distribution. The terms
+ are also available at
+ http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ Author: Ankit Raj
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+ */
+
+
+
+#ifndef __INT_LCM_H__
+#define __INT_LCM_H__
+ #ifdef __cplusplus
+ extern "C" {
+ #endif
+
+#define u82lcmu80(in,size) u8lcma(in,size[1])
+
+ #ifdef __cplusplus
+ } /* extern "C" */
+ #endif
+
+#endif /* !__INT_LCM_H__ */
diff --git a/src/c/elementaryFunctions/interfaces/int_sinc.h b/src/c/elementaryFunctions/interfaces/int_sinc.h
new file mode 100644
index 00000000..35a519db
--- /dev/null
+++ b/src/c/elementaryFunctions/interfaces/int_sinc.h
@@ -0,0 +1,19 @@
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+
+ This file must be used under the terms of the CeCILL.
+ This source file is licensed as described in the file COPYING, which
+ you should have received as part of this distribution. The terms
+ are also available at
+ http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ Author: Ankit Raj
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+ */
+
+#ifndef __INT_SINC_H__
+#define __INT_SINC_H__
+
+#define d2sincd2(sample,size,oup) dsinca(sample,size[1],oup)
+#define z2sincz2(sample,size,oup) zsinca(sample,size[1],oup)
+
+#endif /* !__INT_SINC_H__! */