summaryrefslogtreecommitdiff
path: root/2.3-1/src/c/elementaryFunctions/sqrt/u16sqrta.c~
diff options
context:
space:
mode:
authorimushir2015-11-27 15:35:58 +0530
committerimushir2015-11-27 15:35:58 +0530
commitdec7e49772abc6230ec02e0c5e9f9ac8d24f1cec (patch)
treef634c42bbe161b1a85d3b798db133b64d1d3e045 /2.3-1/src/c/elementaryFunctions/sqrt/u16sqrta.c~
parent89a131f05e3ca03a69fb5cc36ebe0e43db6c82fc (diff)
downloadScilab2C-dec7e49772abc6230ec02e0c5e9f9ac8d24f1cec.tar.gz
Scilab2C-dec7e49772abc6230ec02e0c5e9f9ac8d24f1cec.tar.bz2
Scilab2C-dec7e49772abc6230ec02e0c5e9f9ac8d24f1cec.zip
added c files for u8 u16 i8 i16
Diffstat (limited to '2.3-1/src/c/elementaryFunctions/sqrt/u16sqrta.c~')
-rw-r--r--2.3-1/src/c/elementaryFunctions/sqrt/u16sqrta.c~20
1 files changed, 20 insertions, 0 deletions
diff --git a/2.3-1/src/c/elementaryFunctions/sqrt/u16sqrta.c~ b/2.3-1/src/c/elementaryFunctions/sqrt/u16sqrta.c~
new file mode 100644
index 00000000..2589a67d
--- /dev/null
+++ b/2.3-1/src/c/elementaryFunctions/sqrt/u16sqrta.c~
@@ -0,0 +1,20 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007-2008 - INRIA - Bruno JOFRET
+ *
+ * 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
+ *
+ */
+
+#include "sqrt.h"
+
+void u16sqrta(uint16* in, int size, float* out) {
+ int i = 0;
+ for (i = 0 ; i < size ; ++i) {
+ out[i] = u16sqrts(in[i]);
+ }
+}