From db464f35f5a10b58d9ed1085e0b462689adee583 Mon Sep 17 00:00:00 2001 From: Siddhesh Wani Date: Mon, 25 May 2015 14:46:31 +0530 Subject: Original Version --- src/c/auxiliaryFunctions/isnan/cisnans.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/c/auxiliaryFunctions/isnan/cisnans.c (limited to 'src/c/auxiliaryFunctions/isnan/cisnans.c') diff --git a/src/c/auxiliaryFunctions/isnan/cisnans.c b/src/c/auxiliaryFunctions/isnan/cisnans.c new file mode 100644 index 00000000..7fc0759f --- /dev/null +++ b/src/c/auxiliaryFunctions/isnan/cisnans.c @@ -0,0 +1,26 @@ +/* + * 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 + * + */ + + + +#ifdef _MSC_VER +#include +#define isnan(x) _isnan((double)x) +#endif + +#include "isnan.h" + + +float cisnans(floatComplex in) { + if ((int)(isnan(creals(in))) && (int)(isnan(cimags(in)))) return 1; + return 0; +} -- cgit From e36eac94dd517bb69d3e5782516ee58942451991 Mon Sep 17 00:00:00 2001 From: Siddhesh Wani Date: Thu, 4 May 2017 16:15:18 +0530 Subject: Basic functions and image processing working with MSVC on windows x64 --- src/c/auxiliaryFunctions/isnan/cisnans.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/c/auxiliaryFunctions/isnan/cisnans.c') diff --git a/src/c/auxiliaryFunctions/isnan/cisnans.c b/src/c/auxiliaryFunctions/isnan/cisnans.c index 7fc0759f..623cea0b 100644 --- a/src/c/auxiliaryFunctions/isnan/cisnans.c +++ b/src/c/auxiliaryFunctions/isnan/cisnans.c @@ -10,14 +10,11 @@ * */ +#ifdef _WIN32 +#include +#endif - -#ifdef _MSC_VER -#include -#define isnan(x) _isnan((double)x) -#endif - -#include "isnan.h" +#include "isnan.h" float cisnans(floatComplex in) { -- cgit