diff options
author | imushir | 2015-11-27 15:35:58 +0530 |
---|---|---|
committer | imushir | 2015-11-27 15:35:58 +0530 |
commit | dec7e49772abc6230ec02e0c5e9f9ac8d24f1cec (patch) | |
tree | f634c42bbe161b1a85d3b798db133b64d1d3e045 /2.3-1/src/c/elementaryFunctions/sqrt/i16sqrta.c~ | |
parent | 89a131f05e3ca03a69fb5cc36ebe0e43db6c82fc (diff) | |
download | Scilab2C-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/i16sqrta.c~')
-rw-r--r-- | 2.3-1/src/c/elementaryFunctions/sqrt/i16sqrta.c~ | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/2.3-1/src/c/elementaryFunctions/sqrt/i16sqrta.c~ b/2.3-1/src/c/elementaryFunctions/sqrt/i16sqrta.c~ new file mode 100644 index 00000000..95a67982 --- /dev/null +++ b/2.3-1/src/c/elementaryFunctions/sqrt/i16sqrta.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 i16sqrta(int16* in, int size, int16* out) { + int i = 0; + for (i = 0 ; i < size ; ++i) { + out[i] = i16sqrts(in[i]); + } +} |